Switch to use Selenium Server Standalone 3.141.59 to follow with Latest Chrome Browser and Chrome Driver options

Created on 4 May 2022, over 2 years ago
Updated 30 May 2023, over 1 year ago

Problem/Motivation

Having the following issues when running

Could not open connection: invalid argument: cannot parse capability: goog:chromeOptions
      from invalid argument: cannot parse prefs
      from invalid argument: must be a dictionary
        (Driver info: chromedriver=101.0.4951.41 (93c720db8323b3ec10d056025ab95c23a31997c9-refs/branch-heads/4951@{#904}),platform=Linux 5.13.0-1021-aws x86_64) (WARNING: The server did not provide any stacktrace information)
      Command duration or timeout: 15 milliseconds
      Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      System info: host: 'd99e18ae59f2', ip: '192.168.160.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.13.0-1021-aws', java.version: '11.0.15'
      Driver info: org.openqa.selenium.chrome.ChromeDriver (Behat\Mink\Exception\DriverException)

Proposed resolution

  • Switch to use Selenium Server Standalone 3.141.59
  • Switch the download of the .jar file to github.com to follow with latest stable releases
                if [[ ! -f /home/circleci/selenium-server-standalone-3.141.59.jar ]]; then wget -O /home/circleci/selenium-server-standalone-3.141.59.jar https://github.com/SeleniumHQ/selenium/releases/download/selenium-3.141.59/selenium-server-standalone-3.141.59.jar; fi
                cd /home/circleci/
                java -jar selenium-server-standalone-3.141.59.jar -port 4445
    
  • Change Chrome options to:
    selenium2:
            wd_host: 127.0.0.1:4445/wd/hub
            capabilities:
              # browser: 'firefox'
              browser: 'chrome'
              # browser: 'phantomjs'
              nativeEvents: true
              marionette: true
              browserName: chrome
              version: "*"
              extra_capabilities:
                loggingPrefs:
                  performance: ALL
                  browser: ALL
                chromeOptions:
                  w3c: false
                  args:
                    - "--headless"
                    - "--start-maximized"
                    - "--disable-gpu"
                    - "--window-size=1600,1200"
                    - "--no-sandbox"
                    - "--disable-dev-shm-usage"
                    - "--disable-setuid-sandbox"
                    - "--disable-web-security"
                    - "--DNS-prefetch-disable"
                    - "--disable-translate"
                    - "--ignore-certificate-errors"
                    - "--test-type"
                    - "--disable-extensions"
                    - "--incognito"
                    - "--disable-infobars"
                    - "--remote-debugging-port=9222"
                    - "--allowed-ips=*"
                    - "--whitelisted-ips=*"
    

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ✅ Automated unit/functional testing coverage

  • ✅ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.7 , varbase-10.0.0-alpha1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3278730 : Switched to use Selenium Server Standalone 3.141.59 to follow with Latest Chrome Browser and Chrome Driver options
📌 Task
Status

Fixed

Version

9.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024