Skip to content
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

Tests do not launch with latest Chrome version 116 #381

Closed
artembannikov opened this issue Aug 24, 2023 · 4 comments
Closed

Tests do not launch with latest Chrome version 116 #381

artembannikov opened this issue Aug 24, 2023 · 4 comments

Comments

@artembannikov
Copy link

Hello,

I'm trying to run UIVeri5 tests from my local machine in a non-headless mode and the tests fail to launch due to the fact that as the latest release for chromedriver the version 114.0.5735.90 is downloaded:

INFO: @ui5/uiveri5 v1.47.9
INFO: Resolving specs
INFO: Check for latest version of: chromedriver.exe from: https://chromedriver.storage.googleapis.com/LATEST_RELEASE
INFO: Found latest version of chromedriver.exe: 114.0.5735.90
INFO: Downloading webdriver binary: https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_win32.zip

But this version of chromedriver can run only with browser version 114, while I have already Chrome being updated to version 116.0.5845.111:

[10:20:53] E/launcher - session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.111 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  (Driver info: chromedriver=114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052}),platform=Windows NT 10.0.22621 x86_64)

Any feedback on this issue will be appreciated.

uiveri5 version: v1.47.9
node version: v18.16.1
npm version: 9.8.1
system: Windows 11

@hmanchev
Copy link
Contributor

Hello,

The root cause for this error is that Chrome changed the way they provide chromedriver for download. More details can be found here: https://chromedriver.chromium.org/downloads

UIVeri5 is configured to find the latest chromedriver version (https://chromedriver.storage.googleapis.com/LATEST_RELEASE) and to compare with the available on the host version. Unfortunately this approach is not working after the recent changes. You can see that the "LATEST_RELEASE" is pointing version 114.x version and UIVeri5 is ensuring this version of the driver, but your browser is already 116.x version.

It is required to have adaptation in the automatic chromedriver download procedure in UIVeri5. As the tool is already deprecated, the fix might be delayed. So till the fix is available, I would recommend manual workaround:

  1. Manually download the driver for your browser version from this page: https://googlechromelabs.github.io/chrome-for-testing/#stable
  2. Unzip the archive and place the file "chromedriver" in the directory, where UIVeri5 is installed: ..../uiveri5/selenium/chromedriver-114.0.5735.90
    You must rename the file to contain the version 114.x (chromedriver-114.0.5735.90) as this is the way the tool to recognize whether you already have the latest (known) version.

These steps should be done for each new version of the browser till we manage to provide a fix in the automatic procedure.

Please comment if you have any issues applying the above procedure. I will be glat to further assist you.

Best Regards,
Hristo

@artembannikov
Copy link
Author

Hello Hristo,

thank you very much for the quick reply. All clear! The workaround works well.
With that I'm closing the issue.

Best regards,
Artem

@luizcarlospedrosogomes
Copy link

Something that was reported 2 years ago and SAP has not yet resolved. This repository has been discontinued?

@hmanchev
Copy link
Contributor

hmanchev commented Jul 5, 2024

Hello, the project is deprecated around 3 years ago. It is stated at the top of the README.md

There is a workaround for this issue, so if someone is still not migrated to another testing framework, can use it till the migration.
It is not recommended to use UIVeri5 for your tests scripts, as we cannot guarantee neighter support nor development/fixes.

Please consider migration to another testing framework. Good choice would be wdi5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants