Webdriver - Doubleclick an element.
In order to perform there events we need to use actions class. Below is the sample code.
Actions action = new Actions(driver);
action.doubleClick(driver.findElement(By.id("ctl00xcpheRFxxUltraWebGrid1_rc_4_1")));
action.perform();
action.sendKeys(driver.findElement(By.id("ctl00xcpheRFxxUltraWebGrid1_rc_4_1")), "Bharath");
action.perform();
Wait(5000);
---
In order to perform there events we need to use actions class. Below is the sample code.
Actions action = new Actions(driver);
action.doubleClick(driver.findElement(By.id("ctl00xcpheRFxxUltraWebGrid1_rc_4_1")));
action.perform();
action.sendKeys(driver.findElement(By.id("ctl00xcpheRFxxUltraWebGrid1_rc_4_1")), "Bharath");
action.perform();
Wait(5000);
---
No comments:
Post a Comment