My problem is that I have a captcha value inside an HTML element which I can't seem to be able to capture using the find_element() function.
I have this piece of code
iframe = driver.find_element_by_xpath("//iframe\[@name='reCAPTCHA'\]")
driver.switch_to.frame(iframe)
ID_token = driver.find_element(By.ID,"recaptcha-token").get_attribute('value')
print(ID_token)
Whose purpose is to get the value out of the hidden element containing the captcha token
But the code simply dies in these lines without telling me what went wrong
This is the link for the page where the captcha is.
Would appreciate the help.