-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Using xvfb=True without Headless mode does not work with Docker #2982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #2976 (comment) Also, you mentioned in #2976 (comment) that you were using |
Thank you for your fast response!!! |
I tried your Dockerfile but it is not building up. I am getting this error:
|
Also, before fully integrating your Dockerfile, I have changed mine from FROM Python to Ubuntu. However, I was still getting X11 display failed! Will use regular xvfb! |
The file exists if you have the complete fork: SeleniumBase/virtualenv_install.sh Check to make sure your system isn't hiding It's working from the included Dockerfile:
The Xvfb issue is not occurring when running the examples from that Docker image. |
But, wait I have my own project and my own Dockerfile, it would be a bit painful to fork, clone everything in Selenium inside my application which will be huge. Is there any way without cloning SeleniumBase to my dir? |
What I mean is that when I pip install selenium-base, am I not getting all of it? |
The SeleniumBase Dockerfile is meant to be used from a full clone of SeleniumBase. If you choose to use your own Dockerfile from your own SeleniumBase installation, you'll need to manually figure out what you need to change in order to make things work. |
Yes sir thanks!! |
did the docker image works for you please ? how can i use it ? |
The docker image did not work for me, I could never used the headless mode. Instead, I used a linux machine to run my application in headless mode. However, in that case you may lose some of the security features of SeleniumBase like being full undercover. |
Can you please share with me the code to bypass cloudflare challenge
because i tested the one of gitlab but doesn't work for me
Thank you in advance
Le jeu. 20 févr. 2025 à 12:42, Barış Özdizdar ***@***.***> a
écrit :
… The docker image did not work for me, I could never used the headless
mode. Instead, I used a linux machine to run my application in headless
mode. However, in that case you may lose some of the security features of
SeleniumBase like being full undercover.
—
Reply to this email directly, view it on GitHub
<#2982 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASPIMJ7QX6FRA4YVNTCENLL2QW5S7AVCNFSM6AAAAABL2UQSTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZRGI2TGMZYHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: Orbiszeus]*Orbiszeus* left a comment
(seleniumbase/SeleniumBase#2982)
<#2982 (comment)>
The docker image did not work for me, I could never used the headless
mode. Instead, I used a linux machine to run my application in headless
mode. However, in that case you may lose some of the security features of
SeleniumBase like being full undercover.
—
Reply to this email directly, view it on GitHub
<#2982 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASPIMJ7QX6FRA4YVNTCENLL2QW5S7AVCNFSM6AAAAABL2UQSTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZRGI2TGMZYHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Dear Michael,
I have seen other issues and read them as well, you have advised using xvfb=True for proxy reasons without the need of the Headless mode with the new update. However when I use here :
It is not opening the page with Headless=True at least it was opening the webpage (less secure for my crawler I know).
Raised Error looks like :
The text was updated successfully, but these errors were encountered: