mouseover - Mouse Over Event In Selenium webdriver -
i unable reveal sub menu menu
i tried following methods 1) tried mouse on action (obvious one) 2)i tried javascript executor
problem html component loaded on mouse on unable set attribute of element not present in html using java https://www.milonic.com/index.php
the hover action works great, i've written little testing code can modify needs, here clicks on link "about us" in tab "about milonic"
what needed wait
object expectedconditions
. here wait element in menu clickable.
driver.get("https://www.milonic.com/index.php"); actions action = new actions(driver); webelement hover = driver.findelement(by.id("el136")); action.movetoelement(hover).build().perform(); webdriverwait wait = new webdriverwait(driver, 5); webelement element = wait.until(expectedconditions.visibilityofelementlocated(by.cssselector("#tbl0 #ptr0 a"))); element.click();
Comments
Post a Comment