The following is a part of my AppleScript script that should click an element in the current tab of Google Chrome with name 'connect'.
tell app "Google Chrome"
do JavaScript "document.getElementsByName('connect').click();" in current tab of first window
end
When is runs, it returns the following syntax error:
Expected end of line but found identifier.
How would I get this to work?