DBC: reCAPTCHA v2 Checkbox
Description
Use the step to get the token to solve reCAPTCHA v2 Checkbox.
Reference
How to use token to solve reCAPTCHA.
Note:
To solve reCAPTCHA, pass the token text received in response, to an Inject JavaScript step to complete action of handling the output token to process reCAPTCHA.
Configurations
| Field name | Description |
|---|---|
| Field name | Description |
| Step name | Specify a unique name for the step. |
| DBC ACCOUNT DETAILS | |
| Use HTTPS | Select the checkbox if you want to switch the communication protocol between standard HTTP and secure HTTPS. When you select the Use HTTPS checkbox, the application sends the CAPTCHA request to the API endpoint using the https:// protocol. This initiates a secure connection, where all data exchanged between your system and the API server is encrypted. This encryption prevents anyone from intercepting and reading the API request, which might include your username, password, or the CAPTCHA data itself. If the box is unchecked, it falls back to the standard, unencrypted http:// protocol. For any real-world use, keeping this box checked is highly recommended. For example, https://api.dbcapi.me/api/captcha |
| URL | Displays the URL of the REST API of your DBC account. |
| Username | Specify the username of your DBC account. |
| Password | |
| Accept value as variable/static | Specify or select the password, as required. If the Accept Value as variable/static checkbox is selected, then the password field appears as a text box and accepts static or variable values. OR If the Accept Value as variable/static checkbox is clear, then the password field appears as a dropdown in which you can select a field from the previous steps. |
| INPUT tab: | Input Fields |
| Page URL | Specify URL of the page on which the reCAPTCHA with Checkbox is to be resolved. The data type of the field is String and is mandatory. |
| Site Key | Site Key is a web-based security system, which provides a type of mutual authentication between end-users and websites. The primary purpose of the key is to deter phishing. Specify the site key. The data type of the field is String and is mandatory. Note: Fetch the data-sitekey or sitekey from page source by right clicking on web page and clicking to view page source. |
| Retry If DBC Service Is Temporarily Unavailable | |
| Max Retry Count | Specify the max retry count. Max Retry Count is used for: * When the DBC service is temporarily unavailable. * When API fails to retrieve the output, that is, token text. If the value is not provided or less than 10, then it will retry for maximum 10 times internally. The data type of the field is Integer and the field is optional. The default value is 10. |
| Retry Interval (Seconds) | Specify the retry time interval in seconds between every retry attempt (Polling repeat interval) in case DBC server is temporarily unavailable or CAPTCHA is not resolved. The data type is integer. The default value is 2. Notes: * If in the first attempt, the API fails to retrieve the CAPTCHA text, that is, the result returned by the API is blank, then it will internally retry polling for maximum of 10 times after every specified interval in seconds until it gets the CAPTCHA text. * The minimum retry interval must not be less than 2 seconds. |
| Timeout (Seconds) | This field is a numeric input that lets you define how long your application will wait for the CAPTCHA API server to respond before giving up. The single value you enter in the "Timeout (Seconds)" field controls three distinct internal timeout settings, making the configuration simple yet powerful: - connectTimeout: This is the maximum time to wait to establish a connection with the server. If the server is offline or unreachable, your application will stop trying to connect after this period. - connectRequestTimeout: This is the time spent waiting for a connection from the internal connection pool. This is relevant in high-load scenarios and prevents your application from getting stuck if all connections are temporarily busy. - socketTimeout: Also known as the read timeout, this is the most common one. Once a connection is successfully established, this is the maximum time your application will wait for data to be received from the server. |
| OUTPUT tab: | Token Text: |
| Token Text | Specify an output field to hold the retrieved token text on successful plugin execution. Default label value is TokenText. Steps to handle Token Text to resolve reCAPTCHA with Checkbox: In the following JavaScript code substitute <'Paste string here'> with the Token Text.
* You need to right click the Page URL and click Inspect. * On the Inspect page navigate to the Console tab and paste the code and press Enter. The CAPTCHA checkbox becomes available. However, as the activity is manual, you may create a workflow to automate the activity as mentioned in the next point. Automation: After the reCAPTCHA v3 step in the workflow you may put: A single Plugin step → Inject JavaScript with the previous JavaScript in an Inject JavaScript step Or A combination of RPA Plugin steps to right click and inspect the page → set the JavaScript code above as a variable in Modified Java Script step → Web Set Value on console and → perform Action specified in the Input Tab. |