Generally we have always discussed and solved the problem of zero matching count of xpath and tried to make that unique xpath but we mostly missed to discuss the xPath syntax error.
Handling the syntax error makes us expert in that particular technology.
Of course not all the errors can be discussed in one article but let me try to cover some of the very common and useful xpath syntax errors.
Let’s verify these xpath on SelectorsHub to learn whats wrong in these xpath.
To learn more such XPath errors in details, please checkout this video tutorial-