If CAPTCHAs happen to show up on the page, we provide two functions to help you handle them: captcha_exists
and wait_for_captcha
.
from simplex import Simplex
simplex = Simplex(api_key="your-api-key")
simplex.create_session(workflow_name="captcha_flow", proxies=False)
simplex.goto("https://www.simplex.sh/captcha-example.html")
simplex.wait_for_captcha() # wait for the CAPTCHA to finish
simplex.press_tab() # tab into the text field
simplex.type("Test information")
simplex.click("Submit button") # click the submit button
simplex.close_session()
This is what you’ll see in the dashboard:
See When do CAPTCHAs appear and how do I handle them? for more information.