0

I am using this syntax to test xpath via console, and generally it works in most websites and GoogleSheets is one of the few exceptions I faced so far.

If I recall well, when it didn't work on some other websites, it was due to missing jQuery which is not the case here.

Could anyone explain what this issue and fix here ?

$x("//body")
Enissay
  • 4,969
  • 3
  • 29
  • 56
  • 1
    Devtools adds `$x` and `$` as global functions so when a site has a symbol with such names the site's version is used. There's no solution AFAIK. See [How to use document.evaluate() and XPath to get a list of elements?](https://stackoverflow.com/q/36303869) – wOxxOm Jan 13 '21 at 18:08
  • Too sad, I thought Devtools injects those functions when not found. It seems logical but maybe there is reason not to. Anyway, this answers the question, thank you for the input. – Enissay Jan 14 '21 at 19:56

0 Answers0