The change of #1829 breaks a lot of selectors.
For example my universal td selector
locate('td')
.withText(text)
.at(columnNumber)
.inside(
this.tableRows(tableId)
.withText(text)
.at(_rowNumber)
)
Puppeteer throws this exception: "Uncaught DOMException: Failed to execute ... is not a valid XPath expression."
Reason: Brackets aren't allowed in a "ancestor"-selector.
//*[ancestor::(//*)[1]]
By the way removePrefix does not work for those kind of selectors as well.
Originally posted by @nitschSB in #1829 (comment)
Since I don't really understand what problem exactly this PR solves, I opened this ticket to discuss the change. At least to me it feels like it introduces more problem than it solves.
The change of #1829 breaks a lot of selectors.
Originally posted by @nitschSB in #1829 (comment)
Since I don't really understand what problem exactly this PR solves, I opened this ticket to discuss the change. At least to me it feels like it introduces more problem than it solves.