How to choose the right i-frame with webdriver How to choose the right i-frame with webdriver selenium selenium

How to choose the right i-frame with webdriver


Just changed the iFrame to XPath... like this:

WebDriverWait(driver, 10).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,'//iframe[@title="recaptcha challenge"]')))

Hope this helps you!