Created
April 22, 2024 07:20
-
-
Save SarahElson/76ea2f56acca3369d41f9bb94aaffeca to your computer and use it in GitHub Desktop.
How to Handle Shadow Root in Selenium Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void testFileMenuShadowRootElement() { | |
| getDriver().get("https://www.htmlelements.com/demos/menu/shadow-dom/index.htm"); | |
| final HomePage homePage = new HomePage(); | |
| assertEquals(homePage.getFileMenuText(), "File"); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment