Question: which is not a valid xpath expression?
Answer: 1 Answer. The reason you are seeing an error as not a valid XPath expression because you have exactly 2 issues in it as follows: As you are passing the xpath within single quotes i.e. '' you can't use the same for the attribute values.