-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[ ERROR ] Execution stopped by user #3737
-
I'm trying to use SeleniumBase to automate and bypass a Cloudflare Turnstile CAPTCHA. The following configuration works perfectly on my local machine:
SB(uc=True, test=True, locale="en", incognito=True)
However, when I deploy the same setup to a ubuntu:20.04 pod, I encounter a strange error:
[ ERROR ] Execution stopped by user
If I change the configuration to disable Undetected Chrome:
SB(uc=False, test=True, locale="en", incognito=True)
Then the error disappears — but the CAPTCHA is no longer solved.
Next, I tried running with both uc=True and headless=True, but that results in this error:
PyAutoGUI can't be used in headless mode!
It seems that the issue starts only when uc=True is enabled, and likely involves PyAutoGUI, which can't operate in a headless environment.
What I've Tried:
✅ Works locally with GUI (uc=True)
❌ Fails in Linux pod with uc=True: [ ERROR ] Execution stopped by user
✅ Works in pod with uc=False, but CAPTCHA fails
❌ headless=True breaks PyAutoGUI with uc=True
Request for Help:
I’m currently blocked from running SeleniumBase with uc=True in a Linux pod due to the [ ERROR ] Execution stopped by user. Is there a recommended workaround or best practice to make this work ?
Any urgent assistance would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 6 replies
-
That's a robotframework
error, not a seleniumbase
one.
Show the full stack trace next time.
Note that if your "ubuntu:20.04 pod" has a non-residential IP address, then the automation is detectable.
Beta Was this translation helpful? Give feedback.
All reactions
-
Running on AWS is detectable. Use a proxy server to change your IP via the "proxy" arg. Formats: "user:pass@server:port" and "server:port".
And you still haven’t included the full stack trace.
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @mdmintz ,
Thanks for getting back to me. Unfortunately I don’t see any stack trace in the pod logs—what I’m seeing is just:
[ERROR] Execution stopped by user
and it only occurs when Robot Framework calls into the Python SeleniumBase function with uc=true. Am I doing anything wrong in my code which i have shared above ? Working fine on local windows, but giving error on ubunutu and the moment i ran robot file getting this crash error without any further logs or trace.
Also, thanks for the tip on residential proxies. Could you share any documentation or an example of how to configure and use proxies in SeleniumBase?
Really appreciate your help!
Best,
Prashant
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @mdmintz,
I have one more question. When I run the same code on an AWS EC2 instance, everything works fine—the CAPTCHA page loads, the checkbox is clicked, and the CAPTCHA is bypassed successfully. The EC2 instance also uses a non-residential IP but how its works ?
Does this detection issue occur only on local Ubuntu machines, or would it also affect EC2 instances if we didn’t use non-residential or datacenter IPs?
Thanks in advance ! And Thanks for building this and maintaining this so well.
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @mdmintz ,
I have noticed this error as well when running python file indiviually and not through robot framework on POD. Let me know if anything I am missing.
I have set the arguments like :
SB(uc=True, test=True, locale="en", incognito=True, headed=True, xvfb=True, xvfb_metrics="1920,1080")
========================================================== {CDPSession.py:93:SB} starts ==========================================================
NOTE: You must install tkinter on Linux to use MouseInfo. Run the following: sudo apt-get install python3-tk python3-dev
Beta Was this translation helpful? Give feedback.
All reactions
-
@mdmintz Issue has been resolved. Thanks for your help.
Beta Was this translation helpful? Give feedback.