Shadow DOM in Chrome

Hey, does LambdaTest support Shadow DOM elements ? If yes, please help me with the capability for accessing shadow DOM element in chrome browser.

Hello Rebecca,

Yes, we do support shadow DOM element. For enabling shadow DOM in Chrome, there is no such capability but you can access it by JavaScript Executor command.

WebElement ele = (WebElement) ((JavascriptExecutor)driver) .executeScript(“return arguments[0].shadowRoot”, element);