My Xpath works with $x but not with document.evaluate – Javascript
I'm using AppleScript to control Safari. Now I need to execute a Javascript in Safari using AppleScript's do javascript to evaluate an Xpath and use the return values in the AppleScript This works $x('//div/div/a').map(link => link.href) But when I try…