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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -