【发布时间】:2017-12-18 07:15:43
【问题描述】:
无法点击确定按钮 我试过这样,但它没有点击。
b.find_element(name: "OK").click #----> it is not clicking
如何在 ruby 中与这种类型的 pop-us 交互。
<input class="copybutton" type="button" title="Copy" onclick="copyErrText()" name="copy" value=""/>
<!-- *** Added: copy button *** -->
<button class="button" onclick="disp()" name="OK" value="OK" type="button">OK</button>
【问题讨论】:
-
你可以试试action class或者javascript executor
-
不点击是什么意思。您确定只有一个名称为 ok 的按钮吗?
标签: ruby selenium selenium-webdriver watir watir-webdriver