鼠标悬停时无法识别webelement

时间:2017-10-26 02:49:04

标签: javascript jquery html selenium-webdriver primefaces

我已经尝试了很多方法来识别这个WebElement并且无法成功。 我想点击按钮,当我不将鼠标悬停在按钮上时,这就是html代码:

<button name="j_idk32"
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
id="j_idk32"
role="button"
aria-disabled="false"
style="font-size: 10pt;"
onclick='PrimeFaces.ab({s:"j_idk32"});return false;' type="submit">
<span class="ui-button-text ui-c">Enter Application</span></button>

当我将鼠标悬停在按钮上时,下面是html代码:

<button name="j_idk32" 
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" 
id="j_idk32" 
role="button" 
aria-disabled="false" 
style="font-size: 10pt;" 
onclick='PrimeFaces.ab{s:"j_idk32"});return false;' type="submit">
<span class="ui-button-text ui-c">Enter Application</span></button>

还有一个额外的&#34;类&#34;属性&#34; ui-state-focus&#34;在第二个版本中。

0 个答案:

没有答案
相关问题