我正在尝试使用 Watir 完成重复性任务,但我遇到了困难,需要您的帮助。我有以下按钮代码:
<button class="ppm_button " onclick="submitForm('page','more=1');" type="button">
<img border="0" align="absmiddle" title="Add and Select More" alt="Add and Select More" style="width: 11px; height: 8px; background: url("ui/uitk/images/nde.png") no-repeat scroll 0px 0px transparent;" src="ui/uitk/images/s.gif" >
Add and Select More
</button>
我尝试使用firebug获取xpath并使用相同的xpath在ff上运行脚本,它失败了。我很难给出适当的 xpath 来识别对象。
任何帮助将不胜感激。