captcha Scenario 2 — Solve Cloudflare Turnstile
Written by RTILA X Engineering Team
Beginner ~4 min
What You'll Learn
Detect a captcha before attempting to solve
Real-World Use Case
Avoiding unnecessary solving attempts
LIVE DEMO
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Solve_Cloudflare_Turnstile",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/captcha/2"
],
"captchaEnabled": true
},
"datasets": {
"turnstile_data": {
"item_selector": "css=table.turnstile-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=.cf-turnstile"
}
},
{
"command": "click",
"params": {
"selector": "css=.turnstile-widget"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.turnstile-success"
}
},
{
"command": "extract_data",
"params": {
"dataset": "turnstile_data"
}
}
]
}
Cloudflare Turnstile is handled similarly to reCAPTCHA. A click on the widget solves the challenge and unlocks the protected table.
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 2 RTILA X commands and is referenced in 1 learning article.
Continue Learning
Was this helpful?
Thank you for your feedback!