Skip to content

Commit

Permalink
add a description of the trouble (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uunnamed authored Aug 18, 2020
1 parent 47f64da commit 4c727d9
Showing 1 changed file with 23 additions and 0 deletions.
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

0 comments on commit 4c727d9

Please sign in to comment.