I'm trying to click button inside #shadow-root (closed)
, inside iframe
<iframe title="recaptcha challenge expires in two minutes"
<div class="button-holder help-button-holder">
#shadow-root (closed)
<link rel="stylesheet" href="chrome-extension://mpbjkejclgfgadiemmefgebjfooflfhl/src/solve/solver-button.css">
<button tabindex="0" title="Solve the challenge" id="solver-button"></button>
</div>
</iframe>
This is what I use to switch to iframe
WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"//iframe[@title='recaptcha challenge expires in two minutes']")))
How can I click //button[@id="solver-button"]
Here are photos how it really looks
iframe-link
button-link
div
to click. Then it works for me. – Ineligibleclick
ondiv
if the button is hidden inside? – Filler