1

I am trying to solve a google captcha with Selenium, using python

I'm using this simple example site to test with, but I am having difficulties understanding how to select a button that is within a shadow root.

This image shows the button element I need to get. enter image description here

I understand I need to get the outer div element first, then search for the inner element, but I'm failing to do so, as I am not 100% clear on how to navigate to the inner element after executing something like

driver.execute_script("return document.querySelector('div[class=\"button-holder help-button-holder\"]')

This question is on similar (same?) problem, but there is no working solution.

Jeppe
  • 1,424
  • 2
  • 15
  • 36

0 Answers0