我正在尝试点击#shadow-root (closed)
内部的按钮,如果是在
<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>
这就是我用来换到iframe的东西
WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"//iframe[@title='recaptcha challenge expires in two minutes']")))
如何单击//button[@id="solver-button"]
下面是照片真实的样子
iframe-链接
按钮-链接
https://stackoverflow.com/questions/71282237
复制相似问题