How to use the .inside() method of the Target class? #3327
-
Beta Was this translation helpful? Give feedback.
Answered by
maciejfec2i
Aug 22, 2024
Replies: 1 comment
-
If anyone comes across this issue at any point: The problem was that I was missing a . in front of the // in my xpaths, so the inside method ended up looking for the element globally on the page rather than within the current context. The fix was to change the xpath from |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maciejfec2i
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If anyone comes across this issue at any point: The problem was that I was missing a . in front of the // in my xpaths, so the inside method ended up looking for the element globally on the page rather than within the current context. The fix was to change the xpath from
//button[. = '{0}']
to.//button[. = '{0}']
:)