webdriverio/webdriverio

[đź’ˇ Feature]: <Set browserVersion to browser version installed -1>

Open

#12.031 geöffnet am 16. Jan. 2024

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (6.029 Stars) (1.793 Forks)batch import
EnhancementIdea đź’ˇhelp wanted

Beschreibung

Is your feature request related to a problem?

Sometimes I am seeing issue with the browserVersion='stable'. I faced this issue twice with v8. So in safer side looking for feature to detect the browser version & set the browserVersion=installed-1

Describe the solution you'd like.

like how browserVersion='stable' used to work, looking for browserVersion=installed-1. This can be done by fetching the latest version installed in the system (my guess already doing when setting stable) then setting it to last previous version. --> not sure on name might be hotly/lately...

Example: If current version of chrome installed in system is 120.x.x.xx then get 119 version

Describe alternatives you've considered.

To resolve the issue what I am doing at project level is --> getting the chrome version by 3rd party package "npm i @testim/chrome-version" then subtracting the output of this with -1. Example: If the output is 120.x.x then setting the browserVersion as ==> Number.parseInt(outputVersion) -1

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributor Guide