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 we