Skip to content

How to use the .inside() method of the Target class? #3327

Closed Answered by maciejfec2i
maciejfec2i asked this question in Q&A
Discussion options

You must be logged in to vote

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}'] :)

Replies: 1 comment

Comment options

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