The problem is stated in the subject. I run Chromium 109. My script gets an element. It completes successfully in Chromium’s console but returns an empty string in Script Editor. Has anyone of you been confronted with such an issue in Chrome? Is running Javascript via AppleScript possible at all?
The script is as simple as
tell application id "org.chromium.Chromium"
execute tab id 437953833 of window id 437953739 javascript "document.getElementById(\"main\")"
end tell