【发布时间】:2018-10-30 21:46:14
【问题描述】:
我正在尝试让苹果脚本点击单选按钮。我对此很陌生。我收到此错误:错误“Google Chrome 出现错误:无法将窗口 id 1.52181061E+9 的标签 ID 1.521810707E+9 的活动标签的脚本转换为类型说明符。”编号 -1700 从窗口 id 1.52181061E+9 的标签 id 1.521810707E+9 的活动标签的脚本到说明符
代码:
to clickID(theID)
tell application "Google Chrome"
tell window 1 to tell (make new tab)
set its URL to "https://www.colonialfirststate.com.au/FirstNet/FNA/Controls/AdviserHosting.aspx?Page=BusinessReporting"
delay 5
set theScript to "document.getElementById('" & theID & "')'.click();"
execute javascript theScript in active tab
end tell
end tell
结束点击ID clickID("optFormatCSV")
这是按钮的屏幕截图和检查元素的副本:
检查元素
请帮忙:(
【问题讨论】: