Get access to the code along with the step-by-step details in my blog - sdetunicorns.com/blog/setting-up-chrome-115-116-for-selenium-docker/ No More Chromedriver Mismatch Video - ua-cam.com/video/3jMX4NYPPVk/v-deo.html 📧 Subscribe to my mailing list for all the latest updates regarding new courses and videos - bit.ly/sdet-u-mailing-list
My tests are running headless on docker , wanted to run without headless, used below chromeoptions in conf.js , any idea why? --no-sandbox, --disable-gpu,--disable-dev-shm-usage
Thanks for the video, Unfortunately we get an intermittent error where the CFT driver does not download intermittently when running a docker container on AWS
I’m having that issue as well. Every time I try to run my script I get driver related issues no matter what I try. I’m thinking about either just uploading the scripts to s3 and accessing the selenium lambdas from there instead but I really want to use docker so I’m thinking about trying playwright
Now sure what exactly the error is but perhaps add some retry mechanism to handle the behavior? Additionally, you can try not to download the driver each time by having it downloaded and just relying on that.
@@sdetunicorns I managed to get it working using the wget. I’m still learning docker so I’m not too sure but I was thinking about including the the driver in the docker container but since it’s going into lambda I think it only gets downloaded when I first make the lambda function and not each time I call the function
Do you know the Dockerfile used to build this tag version? Unfortunately I can't just pull it because I have already built a Dockerfile containing FROM python:3.7
Yes indeed I've been struggling this week due to the automatic Chrome update 116. I'm trying to install Chrome 114 in my Dockerfile but I don't know how.
Yes build your own custom image where you pull this along with other application related stuff. Push to your private docker repo and then fetch that in GCP
Sir I am using markhobson:maven-chrome which has jdk maven and older versions of chrome . But it is not working now after this automatic upgrade . Selenium stand-alone image does not have maven and jdk Can you please suggest which image to use to get jdk , maven and chrome browser ( from CFT ) portal please ? I’m really struggling on this . Thanks
You can build your custom dockerfile. Use the maven image and then download the chromedriver and chrome binaries and set the path when running Selenium tests.
Get access to the code along with the step-by-step details in my blog - sdetunicorns.com/blog/setting-up-chrome-115-116-for-selenium-docker/
No More Chromedriver Mismatch Video - ua-cam.com/video/3jMX4NYPPVk/v-deo.html
📧 Subscribe to my mailing list for all the latest updates regarding new courses and videos -
bit.ly/sdet-u-mailing-list
Can we keep the tab open? So when we running the chromedriver again, it will resume the previous session
No it will close the session after each run
My tests are running headless on docker , wanted to run without headless, used below chromeoptions in conf.js , any idea why?
--no-sandbox, --disable-gpu,--disable-dev-shm-usage
You need to have novnc setup to see tests running in the browser
Thanks for the video,
Unfortunately we get an intermittent error where the CFT driver does not download intermittently when running a docker container on AWS
I’m having that issue as well. Every time I try to run my script I get driver related issues no matter what I try. I’m thinking about either just uploading the scripts to s3 and accessing the selenium lambdas from there instead but I really want to use docker so I’m thinking about trying playwright
Now sure what exactly the error is but perhaps add some retry mechanism to handle the behavior? Additionally, you can try not to download the driver each time by having it downloaded and just relying on that.
@@sdetunicorns I managed to get it working using the wget. I’m still learning docker so I’m not too sure but I was thinking about including the the driver in the docker container but since it’s going into lambda I think it only gets downloaded when I first make the lambda function and not each time I call the function
Do you know the Dockerfile used to build this tag version? Unfortunately I can't just pull it because I have already built a Dockerfile containing FROM python:3.7
You can use standalone chrome image with 115 or 114 depending on your need - hub.docker.com/r/selenium/standalone-chrome/tags
Yes indeed I've been struggling this week due to the automatic Chrome update 116. I'm trying to install Chrome 114 in my Dockerfile but I don't know how.
You can set it up using the standalone chrome image 114 - hub.docker.com/r/selenium/standalone-chrome/tags
Can I deploy this prebuilt docker with my code and program on to GCP cloud run and how do I do it ? Thank you
Yes build your own custom image where you pull this along with other application related stuff. Push to your private docker repo and then fetch that in GCP
Sir I am using markhobson:maven-chrome which has jdk maven and older versions of chrome . But it is not working now after this automatic upgrade . Selenium stand-alone image does not have maven and jdk
Can you please suggest which image to use to get jdk , maven and chrome browser ( from CFT ) portal please ? I’m really struggling on this . Thanks
You can build your custom dockerfile. Use the maven image and then download the chromedriver and chrome binaries and set the path when running Selenium tests.
@@sdetunicornsthank you