Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access shadow root #1992

Open
Lars-jnk opened this issue Sep 28, 2023 · 0 comments
Open

Can't access shadow root #1992

Lars-jnk opened this issue Sep 28, 2023 · 0 comments

Comments

@Lars-jnk
Copy link

Lars-jnk commented Sep 28, 2023

I try to access a button behind a shadow root but I get the error:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for by id or name "btn" (first) (Lazy Element) (tried for 5 second(s) with 500 milliseconds interval)
I try with:

@Unshadow(css = {"main-layout", "#shadow-root", "#myBtn"})
 private FluentWebElement btn;

I also tried several other selectors and combinations. But I'm not sure what path I should go. The documentation is not very deep and should be extended.
Here my dom:
Screenshot_20230928_131616

I use the latest io.fluentlenium version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant