Selenium webdriver (Double click on a search result displayed as label) -
i new selenium , need double click on label(appears after successful search result). please help. enter image description here attached page like.
you should use actions()
class includes 'double-click' action.
actions action = new actions(driver); action.movetoelement(driver.findelement(by.xpath("//select[@id='groupselect']/@option[@value='942711']"))).doubleclick().build().perform();
or
actions action = new actions(driver); webelement element=by.xpath("//select[@id='groupselect']/@option[@value='942711']")); //double click action.doubleclick(element).perform(); //mouse on action.movetoelement(element).perform(); //right click action.contextclick(element).perform();
hope :)
Comments
Post a Comment