Skip to content

ReCaptcha Activity

The ReCaptcha activity leverages BestCaptcha's automated online API service to solve ReCaptcha challenges. This activity analyzes security measures designed to differentiate between human users and automated bots, returning the solved captcha results. To utilize this service, an account with BestCaptcha and sufficient credit are required.

Field Description Requirement
Application Name Specifies the name of the target application where the ReCaptcha is located. This application must be already open or attached. Required
Access Token Provides the API key for your BestCaptcha subscription, required for authenticating with the service. Required
Recaptcha Field Defines the XPath of the HTML element that contains the ReCaptcha data-sitekey attribute on the target website. This identifies the specific ReCaptcha to be solved. Optional
Submit Button Field Specifies the XPath of a submit button to be clicked after the ReCaptcha is successfully resolved. This is optional, as some sites may reset the ReCaptcha if the submit button is pressed immediately. Optional
Callback Function Name Used for solving hidden ReCaptchas by specifying the name of the JavaScript callback function associated with the ReCaptcha. This is often found in the data-callback attribute of the ReCaptcha element. Optional

Action Types & Examples

Solve ReCaptcha

  • Format: string
  • Example Result: "g-recaptcha-response-token-example"

Implementation Examples

Field Setup - Application Name: ${myApp} - Access Token: 70EBF….. - Recaptcha Field: //div[@id="g-recaptcha"] - Submit Button Field: //button[@id="submitBtn"] - Callback Function Name: check

Execution Parameters - Execute Activity - Result: captchaToken

Technical Notes

The Callback Function Name field is crucial for handling hidden ReCaptchas, which often require a specific JavaScript function to be triggered upon successful resolution. This function name is typically found in the data-callback attribute of the ReCaptcha element. Care should be taken with the Submit Button Field; in some scenarios, immediately clicking a submit button after ReCaptcha resolution can inadvertently reset the ReCaptcha, necessitating the use of a background JavaScript function instead. Detailed information about BestCaptcha's services, account creation, and payment options can be found on their website.