Skip to content

Getting an error message when using a long xpath #1098

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

You must be logged in to vote

@maburrub /descORself/ is not a real xpath component. It's a temporary replacement of descendant-or-self::*/ (https://developer.mozilla.org/en-US/docs/Web/XPath/Axes/descendant-or-self) for specific use in converting an xpath selector into a css selector for cases where pure javascript or jquery was necessary instead of regular selenium methods. That /descORself/ should only exist within xpath-to-css conversion, and should not be found in the wild. You can avoid such problems by using CSS Selectors whenever possible.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maburrub
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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