我如何点击:
<td class="dxgvCommandColumn_Aqua dxgv" align="center">
<img title="Delete User" class="dxgvCommandColumnItem_Aqua dxgv__cci" onclick="aspxGVScheduleCommand('ctl00_ctl00_bodyPage_BodyPage_grApplicants',['CustomButton','DelAppl',0],1)" src="../images/delete.gif" alt="Delete User" style="cursor:pointer;">
</td>
的Eclipse。的Watir。红宝石。
答案 0 :(得分:0)
根据OP,解决方案是使用fire_event
方法触发与onclick
标记关联的<img>
事件:
browser.image(:title => "Delete User").fire_event "onclick"