jquery - Selenium Click Outside Element (button) -


i'm running problem need click on expanded functions of element triggered js.

picture illustrate ui: http://imgur.com/luyyoy8

so when hover on blue button, display 3 other shapes @ bottom. shapes'html code won't show until mouse hovering on it. approach use actions chain hover on blue button element click off element (in way can click on 3 shapes below).

so far have:

    actions action = new actions(driver);     action.movetoelement(elementposition).build().perform();     action.movetoelement(elementposition, offsetx, offxety).click(); 

but cannot click offset element, proper way it? thank you

are able retrieve html code 3 buttons once have made them visible? if so, should able find , click them using webdriver.findelement() , webelement.click() respectively.

for example:

// find blue button webelement bluebutton = driver.findelement(by.id("blue")); // hover on blue button actions action = new actions(driver); action.movetoelement(bluebutton).build().perform();  // find red button webelement redbutton = driver.findelement(by.id("red")); // click red button redbutton.click();  // , on... 

in example, imperative attempt find red button after blue button has been hovered over.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -