how to find shadow-root element in Chrome using Atata lib

Viewed 163

So I have an element in the DOM this is how it actually looks in chrome

I was trying to locate it like this

[FindById("someId"), As = FindAs.ShadowHost, Visibility = Visibility.Any]
public Text<_> SomeElement {get; private set;}

And I get an error, originally thrown from Selenium:

OpenQa.Selenium.WebDriverException: javascript error: Cannot read property 'children' of null
0 Answers
Related