0

I'm trying to access the "solver-button." So I looked into shadow roots, and it appears I have to open it. I tried doing this by getting the xpath of the "help-button-holder," which didn't work? It just returns it as null, and I'm not sure why as I've accessed other things the same way earlier in the script? I just need to click on "solver-button," I'm really not sure why it isn't working. I've tried,

driver.find_element_by_css_selector('.button-holder.help-button-holder'),  
driver.find_element_by_css_selector('help-button-holder'),   
driver.find_element_by_class_name('solver-button')

etc,

It feels like there are no other solutions as none of them work. Any help is appreciated.

ScreenShot

10
  • Shadow-DOM is closed Commented Aug 2, 2021 at 2:18
  • I know, thats why I was trying to open it. However, when I try to access the "help-button-holder," it returns THAT as null. Commented Aug 2, 2021 at 2:21
  • well you can't open/access the closed Shadow-DOM as much I know- It's like an encapsulation Commented Aug 2, 2021 at 2:22
  • I watched a tutorial on it. I just have to access the thing above it first, which I can't do because for whatever reason trying to find it by class name, xpath, etc doesn't work. Commented Aug 2, 2021 at 2:24
  • Someone has asked this before for your page. Have a look at this: stackoverflow.com/questions/67141915/… Commented Aug 2, 2021 at 8:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.