Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Partial Selector matching. #1213

Answered by mdmintz
taruntechno asked this question in Q&A
Discussion options

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.

You must be logged in to vote

@taruntechno You can use 'input[id*="_testId_"]' for that selector for a partial ID match.

Replies: 1 comment

Comment options

@taruntechno You can use 'input[id*="_testId_"]' for that selector for a partial ID match.

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /