Currently utilizing selenium with Java for web automation.
In order to reach the shadow-root, I am utilizing JavaScriptExecutor (document.shadowRoot.querySelector)
Successfully able to interact with various elements within the page. However, struggling to access this iframe and input desired text into the textbox.
This is my method of interacting with other elements:
WebElement selectSubError1 = (WebElement) jsExecutor.executeScript("return document.querySelector"); ((JavascriptExecutor) browser).executeScript("arguments[0].click();", selectSubError1);
If you have a solution to this issue, please leave a comment below.