Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Could not start chrome on Windows #669

Open
knallcharge opened this issue Feb 20, 2025 · 0 comments
Open

Could not start chrome on Windows #669

knallcharge opened this issue Feb 20, 2025 · 0 comments

Comments

@knallcharge
Copy link

knallcharge commented Feb 20, 2025

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant