【发布时间】:2016-12-24 18:13:44
【问题描述】:
<INPUT onclick="return verifyCheckedForEdit('UserAdminForm', 'itemDelUserId','hiddenUserId', 'Disable')" id=disableButton class=buttonBlue type=submit value=Disable name=Disable>
以上是我的标签。我尝试了各种选项:
disable=$driver.find_element(:xpath,"html/body/div[4]/div[1]/div[2]/form/table/tbody/tr[2]/td/input[2]")
- disable.submit
- $driver.find_element(:name,"Disable").send_keys :enter
- $driver.action.move_to(disable).double_click(disable).perform
- $driver.action.move_to(disable).click(disable).perform
以上都不能点击这个按钮。
【问题讨论】:
标签: javascript html ruby selenium