-
-
Notifications
You must be signed in to change notification settings - Fork 460
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
Suggestion for the library to run in Jenkins #193
Comments
@AnithaSyed ok, open a PR for this |
@SergeyPirogov Thanks for the reply from win32com.client import Dispatch def get_version_via_com(filename): paths = [r"C:\Program Files\Google\Chrome\Application\chrome.exe", |
Will wait for a PR from someone |
@SergeyPirogov I am facing the same issue and I have seen the suggestion is made for the google chrome |
@SergeyPirogov i have read stackoverflow and their solutions recommend to check disk C program files. I don't trust this solution but I went to the Java webdrivermanager library to look how they search the installations and they do the same on Java. commands.properties# Commands database
# This file contains the commands to be executed in the shell in order to detect the version of evergreen browsers
# (Chrome, Firefox, Opera, Edge, Chromium) in different operating systems (Windows, Linux, Mac OS)
# Chrome
command.chrome.windows.01=cmd.exe /C wmic datafile where name="%PROGRAMFILES(X86):\=\\%\\Google\\Chrome\\Application\\chrome.exe" get Version /value
command.chrome.windows.02=cmd.exe /C wmic datafile where name="%LOCALAPPDATA:\=\\%\\Google\\Chrome\\Application\\chrome.exe" get Version /value
command.chrome.windows.03=cmd.exe /C wmic datafile where name="%PROGRAMFILES:\=\\%\\Google\\Chrome\\Application\\chrome.exe" get Version /value
command.chrome.windows.04=REG QUERY HKCU\Software\Google\Chrome\BLBeacon /v version
command.chrome.linux.01=google-chrome --version
command.chrome.mac.01=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --version
# Firefox
command.firefox.windows.01=cmd.exe /C wmic datafile where name="%PROGRAMFILES:\=\\%\\Mozilla Firefox\\firefox.exe" get Version /value
command.firefox.windows.02=cmd.exe /C wmic datafile where name="%PROGRAMFILES(X86):\=\\%\\Mozilla Firefox\\firefox.exe" get Version /value
command.firefox.windows.03=REG QUERY "HKCU\Software\Mozilla\Mozilla Firefox" /v CurrentVersion
command.firefox.linux.01=firefox -v
command.firefox.mac.01=/Applications/Firefox.app/Contents/MacOS/firefox -v
# Edge
command.edge.windows.01=cmd.exe /C wmic datafile where name="%PROGRAMFILES(X86):\=\\%\\Microsoft\\Edge\\Application\\msedge.exe" get Version /value
command.edge.windows.02=cmd.exe /C wmic datafile where name="%PROGRAMFILES:\=\\%\\Microsoft\\Edge\\Application\\msedge.exe" get Version /value
command.edge.windows.03=REG QUERY HKCU\Software\Microsoft\Edge\BLBeacon /v version
command.edge.linux.01=microsoft-edge --version
command.edge.mac.01=/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge -version
# Opera
command.opera.windows.01=cmd.exe /C wmic datafile where name="%LOCALAPPDATA:\=\\%\\Programs\\Opera\\launcher.exe" get Version /value
command.opera.windows.02=cmd.exe /C wmic datafile where name="%PROGRAMFILES:\=\\%\\Programs\\Opera\\launcher.exe" get Version /value
command.opera.windows.03=cmd.exe /C wmic datafile where name="%LOCALAPPDATA:\=\\%\\Opera\\launcher.exe" get Version /value
command.opera.windows.04=cmd.exe /C wmic datafile where name="%PROGRAMFILES:\=\\%\\Opera\\launcher.exe" get Version /value
command.opera.linux.01=opera --version
command.opera.mac.01=/Applications/Opera.app/Contents/MacOS/Opera --version
# Chromium
command.chromium.windows.01=cmd.exe /C wmic datafile where name="%LOCALAPPDATA:\=\\%\\Chromium\\Application\\chrome.exe" get Version /value
command.chromium.windows.02=cmd.exe /C wmic datafile where name="%PROGRAMFILES(X86):\=\\%\\Chromium\\Application\\chrome.exe" get Version /value
command.chromium.windows.03=cmd.exe /C wmic datafile where name="%PROGRAMFILES:\=\\%\\Chromium\\Application\\chrome.exe" get Version /value
command.chromium.windows.04=REG QUERY HKCU\Software\Chromium\BLBeacon /v version
command.chromium.linux.01=chromium-browser --version
command.chromium.linux.02=chromium --version
command.chromium.mac.01=/Applications/Chromium.app/Contents/MacOS/Chromium --version
# Safari
command.safari.mac.01=/Applications/Safari.app/Contents/MacOS/Safari --version May be we should
@SergeyPirogov what do you think? I prefer the API variant - and let the users to setup it on their own code. |
@SergeyPirogov , @aleksandr-kotlyar I suggest to use these type of paths in case of you traditional method is failed to retrieve the version since Java is using this as their default. |
Hi Is anyone looked into this issue? |
What is DEVOPS tools, I don’t understand |
Jenkins, maaven, azure pipelines etc., There is a Discussion on #213 |
@aleksandr-kotlyar but I am getting below error
|
@AnithaSyed I will try take a look at it on this week. |
Hi I have raised the issues about the error raisng by library with the Jenkins or any other DEVOPS tools
I have found that selenium is using "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" to check the version
So I suggest add this one path also to check for the browser version along with your stand user path.
This may solve the DEVOP tools problem and give the library more scope.
The text was updated successfully, but these errors were encountered: