我如何点击img(DevExpress控件)?

时间:2013-03-29 07:54:39

标签: ruby eclipse watir

我如何点击:

<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。红宝石。

1 个答案:

答案 0 :(得分:0)

根据OP,解决方案是使用fire_event方法触发与onclick标记关联的<img>事件:

browser.image(:title => "Delete User").fire_event "onclick"