-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Partial Selector matching. #1213
Answered
by
mdmintz
taruntechno
asked this question in
Q&A
-
Hello @mdmintz does sb have support for partial matching of selectors.
For eg angular code is genrating id's and name as = _testId_y12ht. So only the testId part stays consistent so can I match partially on that.
For eg self.click("input#_testId_y12ht") works for a single session but as soon as page refresh it would fail.
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
mdmintz
Feb 11, 2022
@taruntechno You can use 'input[id*="_testId_"]'
for that selector for a partial ID match.
Replies: 1 comment
-
@taruntechno You can use 'input[id*="_testId_"]'
for that selector for a partial ID match.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment