Answers for "retrieving parent element from child aWebelement selenium java"

0

retrieving parent element from child aWebelement selenium java

WebElement myElement = driver.findElement(By.id("myDiv"));
WebElement parent = (WebElement) ((JavascriptExecutor) driver).executeScript(
                                   "return arguments[0].parentNode;", myElement);
Posted by: Guest on September-16-2020

Code answers related to "retrieving parent element from child aWebelement selenium java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language