How would you select any particular text using the Selenium Webdriver?

1.9K    Asked by KumarMenon in QA Testing , Asked on Jan 26, 2020
Answered by Kumar Menon

 It seems an easy one at first but you need to do a little more to achieve this.

driver.get("/");

WebElement item = driver.findElement(By.xpath("//p[contains(text(),'Selenium webdriver)]"));

Actions dummy = new Actions(driver);

dummy.doubleClick(item).build().perform();



Your Answer

Interviews

Parent Categories