![](/img/trans.png)
[英]Photoshop Applescript calling JavaScript causing error “Expected end of line, etc. but found identifier”
[英]Applescript JavaScript “End of Line but found identifier” Error when controlling Google Chrome
以下是我的AppleScript脚本的一部分,该脚本应单击Google Chrome当前选项卡中名称为“ connect”的元素。
tell app "Google Chrome"
do JavaScript "document.getElementsByName('connect').click();" in current tab of first window
end
当运行时,它返回以下语法错误:
预计行尾,但找到了标识符。
我将如何工作?
没关系。 我想到了。
这是代码:
tell application "Google Chrome"
execute front window's active tab javascript "document.getElementsByName('connect')[0].click()"
end tell
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.