Skip to content

ChromeDriver install fail  #95

@karlentwistle

Description

@karlentwistle

Orb version

browser-tools: circleci/[email protected]

What happened

"Install ChromeDriver" step fails, output is:

Chrome version major is 116
Installed version of Google Chrome is 116.0.5845.187 
404
Matching Chrome Driver Version 404'd, falling back to first matching major version.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   567  100   567    0     0   6968      0 --:--:-- --:--:-- --:--:--  7000
New ChromeDriver version to be installed: 116
116 will be installed
curl: (22) The requested URL returned error: 404

Exited with code exit status 22

Expected behavior

It should install whatever the latest version of Chrome can be downloaded.


I think the issue is with this LOC

CHROMEDRIVER_VERSION=$( curl https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone.json | grep -o "$CHROME_VERSION_MAJOR.*" | grep -o "version.*" | grep -o '\:*'"$CHROME_VERSION_MAJOR"'.*,' | sed 's/".*//')

its returning 116 instead of 116.0.5845.96

For example:

curl https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone.json | grep -o "116.*"  | grep -o "version.*" | grep -o '\:*'"116"'.*,' | sed 's/".*//'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions