Skip to content

[πŸ› Bug]: SE_MANAGER_PATH needs to point to the binaryΒ #16452

@stefandrissen

Description

@stefandrissen

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:

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

//

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions