How to mouseover on a webelement using Selenium WebDriver with Java

后端 未结 3 1199
醉酒成梦
醉酒成梦 2021-01-14 22:57

How to perform a mouse hover functionality using Selenium Webdriver?

Test Case is like say, open Yahoo site and there is link (Mail) beside Sign-In. Upon mouse hover

3条回答
  •  执笔经年
    2021-01-14 23:29

    I have used similar code and it works for me. I have also used the following at a few places: browser.executeScript("jQuery('mycss-selector').mouseover();") You will have to use css-selector, instead of xpath.

提交回复
热议问题