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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -