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 #292

Merged
merged 1 commit into from
Aug 18, 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
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ after a mysteries note was produced on it.
* [Querying wrong elements with XPath expressions](#querying-wrong-elements-with-xpath-expressions)
* [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)
- [Contributors](#contributors)
- [Other materials](#other-materials)
- [License](#license)
Expand Down Expand Up @@ -1843,6 +1844,28 @@ Google Chrome fails.
time. When the page is suspended, no operation could be done on it. No clicks,
Js execution, etc. So try to keep Chrome window active during test session.

### Invalid argument: can't kill an exited process

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

```clojure
user=> (use 'etaoin.api)
user=> (def driver (firefox {:headless true}))
```
> Syntax error (ExceptionInfo) compiling at (REPL:1:13).
throw+: {:response {:value {:error "unknown error", :message "invalid argument: can't kill an exited process"....

Possible cause: "Running Firefox as root in a regular user's session is not supported"

**Solution:** To check, run the driver with the path to the log files and the "trace" log level and explore their output.

``` clojure
(def driver (firefox {:log-stdout "ffout.log" :log-stderr "fferr.log" :driver-log-level "trace"}))
```

Similar problem: https://github.com/mozilla/geckodriver/issues/1655


## Contributors

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