2016-05-09 6 views

Antwort

0

Sie sollten die Klasse Actions() verwenden, da dies einen 'Doppelklick' beinhaltet.

Actions action = new Actions(driver); 
action.moveToElement(driver.findElement(By.xpath("//select[@id='groupselect']/@option[@value='942711']"))).doubleClick().build().perform(); 

ODER

Actions action = new Actions(driver); 
WebElement element=By.xpath("//select[@id='groupselect']/@option[@value='942711']")); 

//Double click 
action.doubleClick(element).perform(); 

//Mouse over 
action.moveToElement(element).perform(); 

//Right Click 
action.contextClick(element).perform(); 

Hoffe, es wird Ihnen helfen :)

Verwandte Themen