Python selenium and captcha

Viewed 8490

I have a scraping bot which I want to stop whenever it encounters a captcha, so not to annoy the websites. But selenium can't find it

driver.find_element_by_xpath("//*[@id='recaptcha-anchor']")

This is the xpath chrome gave me.

ERROR

NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//*[@id='recaptcha-anchor']"}

Any ideas why this does not work?

1 Answers
Related