-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
Description
I am trying to use the Selenium Manager, so updated the ancient Selenium version we were using to the latest version.
For some reason in our AZDO build pipeline the Selenium Manager is not found. All dlls (from mstest) are in an out
folder, but the selenium-manager.exe is not there.:
Initialization method MyTestInitialize threw exception. System.IO.FileNotFoundException: System.IO.FileNotFoundException: Selenium Manager binary 'selenium-manager.exe' was not found in the following paths:
c:\agent\_work\user_host 2025-10-17 09_46_59\Out\selenium-manager.exe
c:\agent\_work\user_host 2025-10-17 09_46_59\Out\runtimes\win\native\selenium-manager.exe.
It is available in the inital msbuild output folder, so environment variable SE_MANAGER_PATH
to the rescue.
I pointed it at the output folder where selenium-manager.exe
resides, but still failing. Google was unable to find the exact error message, but I did find it here:
selenium/dotnet/src/webdriver/SeleniumManager.cs
Lines 50 to 56 in 4fa3952
string? binaryFullPath = Environment.GetEnvironmentVariable("SE_MANAGER_PATH"); | |
if (binaryFullPath is not null) | |
{ | |
if (!File.Exists(binaryFullPath)) | |
{ | |
throw new FileNotFoundException($"Unable to locate provided Selenium Manager binary at '{binaryFullPath}'."); |
So SE_MANAGER_PATH
is expected to point to the binary, which I did not really expect.
Reproducible Code
//