captcha Scenario 1 — Solve reCAPTCHA v2 via 2Captcha
Written by RTILA X Engineering Team
Beginner ~4 min
What You'll Learn
Configure captcha solving via 2Captcha
Real-World Use Case
Automating sites protected by reCAPTCHA
LIVE DEMO
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Solve_reCAPTCHA_v2",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/captcha/1"
],
"captchaEnabled": true,
"captchaProvider": "2captcha",
"captchaApiKey": "demo-key"
},
"datasets": {
"protected_data": {
"item_selector": "css=table.protected-data tr",
"properties": [
{
"name": "field",
"type": "text",
"selector": "css=td:nth-child(1)"
},
{
"name": "value",
"type": "text",
"selector": "css=td:nth-child(2)"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.g-recaptcha"
}
},
{
"command": "click",
"params": {
"selector": "css=.captcha-checkbox"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.recaptcha-success"
}
},
{
"command": "extract_data",
"params": {
"dataset": "protected_data"
}
}
]
}
reCAPTCHA solving is configured through captchaEnabled, captchaProvider, and captchaApiKey. The automation clicks the CAPTCHA checkbox, waits for success, and extracts the protected data.
Did you complete this scenario?
Ready to run this automation?
Copy the project JSON above, open RTILA X, create a new project, and paste it.
This scenario covers 1 RTILA X command and is referenced in 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!