【发布时间】:2018-01-26 03:03:32
【问题描述】:
有没有办法将 WebElement 传递给 Robot 中的 javascript?我的脚本:
${el} = Get Webelement ${locator}
Execute Javascript ${el}.checked = true; #not sure how to approach this bit
我不能使用 document.getElementById("whatever"),因为在某些情况下没有使用 ID,而是使用自定义定位器。
非常感谢您的帮助!
【问题讨论】:
标签: javascript python robotframework selenium2library