Skip to content

How to access shadow element with Driver() #2503

Answered by mdmintz
FuadMannan asked this question in Q&A
Discussion options

You must be logged in to vote

The ::shadow selector only works on open shadow-root elements. From your screenshot, it looks like you're dealing with a closed shadow-root element, which isn't reachable. Info: SeleniumHQ/selenium#5869 (comment)

The method_summary methods are mainly just for BaseCase and SB() formats. If you scroll to the bottom of that page, you'll find a section for Driver() methods:

# "driver"-specific methods added by SeleniumBase`.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FuadMannan
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants