Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Java developer specializing in test automation

Angie Jones angiejones

💭
Java developer specializing in test automation
View GitHub Profile
@angiejones
angiejones / ShadowDomTests.java
Last active Sep 11, 2020
Shadow Dom Elements with Selenium
View ShadowDomTests.java
WebElement shadowRoot = (WebElement)((JavascriptExecutor)driver)
.executeScript(
"return arguments[0].shadowRoot",
driver.findElement(By.id("component-id")));
shadowRoot.findElement(By.id("child-element")).getText();