Skip to content

unknown error: cannot find Chrome binary #237

Description

@kedziorm
PSVersion                      5.1.22621.2506
Windows 11
Chrome 121.0.6167.161

I just installed selenium-powershell
When I try to start Chrome from Powershell:

$Driver = Start-SeChrome

I see mentioned message:

$Driver = Start-SeChrome
Starting ChromeDriver 83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416}) on port 60831
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Exception calling ".ctor" with "2" argument(s): "unknown error: cannot find Chrome binary"
At C:\Program Files\WindowsPowerShell\Modules\Selenium\3.0.1\Selenium.psm1:253 char:9
+         $Driver = [OpenQA.Selenium.Chrome.ChromeDriver]::new($service ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebDriverException

WARNING: Web driver was not created

What should I do?
Why ChromeDriver is quite old: 83.0.4103.39

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions