Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

add a description of the trouble with chromedriver #317

Merged
merged 1 commit into from
Aug 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ after a mysteries note was produced on it.
* [Clicking On Non-Visible Element](#clicking-on-non-visible-element)
* [Unpredictable errors in Chrome when window is not active](#unpredictable-errors-in-chrome-when-window-is-not-active)
* [Invalid argument: can't kill an exited process](#invalid-argument:-can't-kill-an-exited-process)
* [DevToolsActivePort file doesn't exist](#devtoolsactiveport-file-doesn't-exis)
- [Contributors](#contributors)
- [Other materials](#other-materials)
- [License](#license)
Expand Down Expand Up @@ -1857,6 +1858,24 @@ Possible cause: "Running Firefox as root in a regular user's session is not supp
Similar problem: https://github.com/mozilla/geckodriver/issues/1655


### DevToolsActivePort file doesn't exist

**Problem:** When you try to start the chromedriver you get an error:

>clojure.lang.ExceptionInfo: throw+: {:response {:sessionId ".....", :status 13, :value {:message "unknown error: Chrome failed to start: exited abnormally.\n (unknown error: DevToolsActivePort file doesn't exist)...

Possible cause:
> A common cause for Chrome to crash during startup is running Chrome as root user (administrator) on Linux. While it is possible to work around this issue by passing --no-sandbox flag when creating your WebDriver session, such a configuration is unsupported and highly discouraged. You need to configure your environment to run Chrome as a regular user instead.

**Solution:** Run driver with an argument `--no-sandbox`. Caution! This is a bypass OS security model.

``` clojure
(def driver (chrome {:args ["--no-sandbox"]}))
```


A similar problem is described [here](https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t)

## Contributors

- [Ivan Grishaev](https://github.com/igrishaev)
Expand Down