I was writing a PowerShell script to upgrade my webdrivers before starting selenium script, I am able to get the msedgeDriver.exe version using following command but when I use same command for chromedriver.exe it is not returning any output and it does not even through any errors.
This works fine:
(Get-Item C:\xyz\msedgedriver.exe).VersionInfo.FileVersion
- Output:
104.0.1293.54
Does not return any output:
(Get-Item C:\xyz\chromedriver.exe).VersionInfo.FileVersion
- Output:
Nothing returned
If I try the following it works but why not above one ?
C:\RAV\Web_Drivers\chromedriver.exe --version
- Output:
ChromeDriver 103.0.5060.53 (a1711811edd74ff1cf2150f40b17f-refs/branch-heads/5060@{#763})