Closed brzssh closed 1 year ago
I believe this is a browser issue unrelated to Playwright. Most (all?) modern browsers do not support xpath 2.0- https://stackoverflow.com/questions/65271107/why-modern-browser-engines-do-not-support-xpath-2-0
You're better off using a different Locator over xpath with Playwright
As per above, we use Browser's xpath engine for xpath selectors, but you should use high level locators instead.
you can use my playwright-xpath
selector engine which supports up to xpath 3.1
Your question
im trying to use xpath 2.0 features such lower-case and matches but getting invalid xpath error