在 Watir 脚本中,在我检查弹出窗口中的复选框后,我试图执行一个 javascript 函数以将选定的对象添加到父窗口。
到目前为止工作正常的是复选框的检查,但对象没有添加到父窗口,当我执行 watir 脚本时出现以下错误:在 `method_missing': execScript (WIN32OLERuntimeError)
这是我的方法 - 请让我知道我可以使用什么其他方法
ie.checkbox(:id => "check_asm0option0").set
ie.document.parentWindow.execScript("window.triggerOriginalChange(asm0option0, add);","JavaScript")
tr class="tr_option" rel="asm0option0"
td class="td_check"
input id="check_asm0option0" type="checkbox" value="4dbb118ddca3244e2800003d" rel="asm0option0" name="ignore"
/td
td class="td_li"
li value="0" rel="asm0option0" test /li
/td
/tr