Page Execute
Run one action on the session’s current page.
While a CAPTCHA is being solved
While a CAPTCHA on the page is unsolved or being solved (automatically with solve_captchas: true, or after a captcha_solve action), the action is not run. The request still answers HTTP 200, at once, with:
success: falseandaction_executed: falsecode: "captcha_in_progress", with a human-readablemessagethat can varycaptcha: the solve’scaptcha_id,page_id,generation,state: "solving"andretry_after_ms
This applies to every action except goto, wait included: {"type": "wait", "time_ms": 5000} returns right away without waiting. An HTTP 200 does not mean the action ran: check action_executed, code and captcha.state on every response, not message.
To wait for the solve, either:
- poll it: send
{"type": "captcha_solve"}with the query parametercaptcha_idset tocaptcha.captcha_id, everyretry_after_ms, untilcaptcha.stateis no longer"solving". A poll is read-only: it runs no action and starts no new solve. - or sleep on your side for
retry_after_msand send the action again.
A solve ends solved (code: "captcha_solved"), failed (code: "captcha_failed") or cancelled (code: "captcha_cancelled", for example after a goto). With solve_captchas: true, after failed, actions on that page keep answering captcha_failed without running while the CAPTCHA is still there; a goto still runs.
When the site rejects the answers our solver delivers, solving that CAPTCHA stops on the page: at once when the site’s own response refuses an answer, or after 3 answers in a row that the site took and then showed the CAPTCHA again right away (before the third, the CAPTCHA is solved again). The solve then ends failed with code: "captcha_rejected" and captcha.failure_reason: "rejected": actions on that page keep answering captcha_rejected without running while it is there. A site that refuses an answer this way often refuses every later one in the same browser session, so start a new session (for example through another proxy) instead of waiting. A captcha_solve action still tries again.
After solved, send the action again only if its response had action_executed: false. To make sure it runs on the same page, add the query parameters target_page_id and target_generation from the last captcha status; if the page changed, the answer is code: "captcha_page_changed" and nothing runs. An action that ran and then brought up a CAPTCHA answers action_executed: true with a captcha status: keep its result, poll the solve, and do not send the action again.
A goto is never blocked: it ends a solve in progress. captcha_timeout_seconds (default 180) is the budget of a solve the request starts. observe, scrape and screenshot are not blocked by a solve: they read the page as it is.
Authorizations
Query Parameters
Body
- FormFillAction
- GotoAction
- GotoNewTabAction
- CloseTabAction
- SwitchTabAction
- GoBackAction
- GoForwardAction
- ReloadAction
- WaitAction
- PressKeyAction
- ScrollUpAction
- ScrollDownAction
- CaptchaSolveAction
- HelpAction
- CompletionAction
- ScrapeAction
- EmailReadAction
- EmailVerificationReadAction
- SmsReadAction
- EvaluateJsAction
- ClickAction
- FillAction
- MultiFactorFillAction
- FallbackFillAction
- CheckAction
- SelectDropdownOptionAction
- UploadFileAction
- DownloadFileAction
Response
Successful Response
- FormFillAction
- GotoAction
- GotoNewTabAction
- CloseTabAction
- SwitchTabAction
- GoBackAction
- GoForwardAction
- ReloadAction
- WaitAction
- PressKeyAction
- ScrollUpAction
- ScrollDownAction
- CaptchaSolveAction
- HelpAction
- CompletionAction
- ScrapeAction
- EmailReadAction
- EmailVerificationReadAction
- SmsReadAction
- EvaluateJsAction
- ClickAction
- FillAction
- MultiFactorFillAction
- FallbackFillAction
- CheckAction
- SelectDropdownOptionAction
- UploadFileAction
- DownloadFileAction