我当前正在尝试使用Selenium WebDriver测试对话框,但“创建员工”按钮没有ID或名称。这就是代码的样子。Java/SeleniumWebDriver - 使用Selenium点击一个JQuery对话框按钮
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
<div class="ui-dialog-buttonset">
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
<span class="ui-button-text">Create Employee</span>
</button>
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
<span class="ui-button-text">Cancel</span>
</button>
</div>
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
<span class="ui-button-text">Create Employee</span>
</button>
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
<span class="ui-button-text">Cancel</span>
</button>
</div>
任何人都可以提供的java代码,将点击对话框中的按钮?由于
嘿,我猜有同名为“创建雇员”我说得对两个按钮? – Omkar 2013-05-14 07:22:30