Unknown error: cannot find chrome binary

Problem Description:

After executing selenium test cases in pcharm, it can run normally

Integrated in Jenkins. When building, it is found that the build is successful. However, when viewing the console output, an error is reported: unknown error: cannot find chrome binary

The reason is that Chrome browser cannot be found and chrome.exe environment variable configuration is missing

Solution:

Configuration build execution status:

1. Back to Jenkins home page, click “build execution status” or “build executor status”, and local information will be listed on the right

2. Click the local settings button to add the directory of chrome.exe in the path

3. Click build now again and the execution is successful

Similar Posts: