与Selenium Webdriver中的readonly属性交互

时间:2014-02-24 16:54:23

标签: java html selenium-webdriver readonly

我正在尝试为使用大量现成webElements的网站自动化测试:

<input type="text" readonly="readonly" value="enter text here" name="badgeNo">

我一直在:

Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: 
 Cannot click on element (WARNING: The server did not provide any stacktrace 
                          information)

有没有办法解决这个问题,而不更改html?

0 个答案:

没有答案