How to mouseover on a webelement using Selenium WebDriver with Java

后端 未结 3 1200
醉酒成梦
醉酒成梦 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:35

    Actions actions = new Actions(driver);
    actions.moveToElement(element).click().build().perform();
    

提交回复
热议问题