Setting Up Selenium Docker with Chrome 115 & 116: Navigating the Chromedriver Changes

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 19

  • @sdetunicorns
    @sdetunicorns  Рік тому

    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

  • @shinichi9do
    @shinichi9do Рік тому

    Can we keep the tab open? So when we running the chromedriver again, it will resume the previous session

    • @sdetunicorns
      @sdetunicorns  Рік тому

      No it will close the session after each run

  • @Chandhruz
    @Chandhruz Рік тому

    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

    • @sdetunicorns
      @sdetunicorns  Рік тому

      You need to have novnc setup to see tests running in the browser

  • @dhavewala
    @dhavewala Рік тому

    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

    • @gucciflipflops9665
      @gucciflipflops9665 Рік тому

      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

    • @sdetunicorns
      @sdetunicorns  Рік тому

      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.

    • @gucciflipflops9665
      @gucciflipflops9665 Рік тому

      @@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

  • @antoniocamposrodriguez3726
    @antoniocamposrodriguez3726 Рік тому

    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

    • @sdetunicorns
      @sdetunicorns  Рік тому

      You can use standalone chrome image with 115 or 114 depending on your need - hub.docker.com/r/selenium/standalone-chrome/tags

  • @antoniocamposrodriguez3726
    @antoniocamposrodriguez3726 Рік тому

    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.

    • @sdetunicorns
      @sdetunicorns  Рік тому

      You can set it up using the standalone chrome image 114 - hub.docker.com/r/selenium/standalone-chrome/tags

  • @TuanLe-wh4ni
    @TuanLe-wh4ni Рік тому

    Can I deploy this prebuilt docker with my code and program on to GCP cloud run and how do I do it ? Thank you

    • @sdetunicorns
      @sdetunicorns  Рік тому

      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

  • @abhisekbanerjee3369
    @abhisekbanerjee3369 Рік тому

    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

    • @sdetunicorns
      @sdetunicorns  Рік тому +1

      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.

    • @abhisekbanerjee3369
      @abhisekbanerjee3369 Рік тому

      @@sdetunicornsthank you