Replies: 1 comment
-
jQuery is bundled with Cypress and can be used for many of its DOM commands. jQuery allows multiple selectors, you'll have to use the For your example to get both
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to select multiple paths using cy.get? Is there an OR (|) locator like in webdriver?
in webdriver, one can do something like this: //[@data-t="id-1"] | //[@data-t="id-2"]
Example:
[data-t="some-id-1"] | [data-t="some-id-2"]
https://www.w3schools.com/xml/xpath_syntax.asp
Beta Was this translation helpful? Give feedback.
All reactions