Playwright Captcha

Automatiza navegación web con Playwright, resuelve captchas con 2captcha y usa proxies

Navigate and Interact

AI-generated

Summary

Navigate to a specified URL and perform a series of interactions like clicks or text input, with optional CAPTCHA solving and proxy configuration.

Inputs

  • url (required) — The URL to navigate to.
  • actions (required) — A list of actions to perform on the page, each defined by an action type and additional parameters such as selectors and text.
  • captchaSettings — Settings for enabling CAPTCHA solving, including API key and site information.
  • proxySettings — Configuration for using an HTTP proxy, including server details and authentication.
  • headless — Whether to run the browser in headless mode.
  • timeout — Timeout for operations in milliseconds.

Output shape

an object containing the results of the navigation and interactions, including any solved CAPTCHA tokens or error messages.

Outputs may include success indicators for each action and the final HTML content of the page.

Examples

Example 1: Navigating to a login page and filling in credentials with optional CAPTCHA resolution.

Input the URL for the login page, configure actions like clicking the login button and typing the username and password, set CAPTCHA settings if applicable.

Discussion