Skip to content

Could not start chrome on Windows #669

@knallcharge

Description

@knallcharge

On Windows I get the error message "Symfony\Component\Panther\Exception\RuntimeException: Could not start chrome. Exit code: 1 (General error). Error output: The command "." is either misspelled or could not be found."
To fix the issue on Windows I changed the hardcoded path "./drivers" in ChromeManager::findChromeDriverBinary (line 89 in version 2.2.0) to ".\drivers".

Searching for the issue I found that in some older versions of Panther it was possible to create a ChromeClient directly, telling it the drivers-path as a parameter, but this seems to be removed and I couldn't find a way to do it with the current version.
(Using Client::createChromeClient() with the binary-path does not work either, it throws a "Facebook\WebDriver\Exception", also setting PANTHER_CHROME_BINARY to my path did not change anything.)

Question: Am I missing something or can I still set a custom drivers-path somehow? Or should the hardcoded path in ChromeManager use the DIRECTORY_SEPARATOR instead of a slash?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions