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")
Sample page to test from your end: (Not my link, but found on the internet)
Sample error while css selector syntax works fine:
That xpath is so simple and it works fine when searching in the Elements tab
I have chrome up to date under Win10 x64