开发者

Selenium - Clicking on a hidden button that appears only when hovering above it

I am attempting to run some automated tests in Eclipse using Java (running them as JUnit tests) and I'm using Selenium IDE 1.0.10 plugin for Firefox in order to find the button IDs. The problem is that on the webpage, I have a hidden button on a row that becomes visible only when hovering above it. If I click on the button, Selenium registers the click, but if I attempt to run the test case, it stops at that click, since the button is only visible when the mouse hovers over it. Is there a way, a command in Selenium for "mouse hover" or something that makes the button visible before 开发者_如何转开发clicking it? If you need more information, please ask and I will provide everything I can. I don't know what else is needed since I'm pretty new at both Java and Selenium.

Thank you!


Try:

selenium.mouseOver("mylocator");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜