Null Pointer Exception on click at the element located inside of the shadow Root (closed)
Tried to handle it with Java Script:
public WebElement getShadowRootElement(WebElement element) {
return (WebElement)
((JavascriptExecutor)
driver).executeScript("return
arguments[0].shadowRoot", element);
}
Result:
Cannot read property 'shadowRoot' of null



