Skip to content

Commit

Permalink
Added connection docs for Chrome fixes #9
Browse files Browse the repository at this point in the history
We currently have to pass the `--no-sandbox` cli arg to chrome. I have
yet to figure out how to customize the Node to do this, so documentation
will have to be the gate keeper on this for now.
  • Loading branch information
mtscout6 committed Nov 7, 2014
1 parent 36e8800 commit 6d41031
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ I like to remove the containers after each e2e test with `--rm` since this docke

A dynamic port will be binded to the container ones, i.e.

When you send your capabilities request for chrome be sure in include the `--no-sandbox` argument to be used when launching Chrome, for example:

```
options = webdriver.ChromeOptions()
options.add_argument("--no-sandbox")
driver = webdriver.Remote(command_executor='http://127.0.0.1:4444/wd/hub',desired_capabilities=options.to_capabilities())
driver.get("http://www.python.org")
print(driver.title)
```

``` bash
# Obtain the selenium port you'll connect to:
docker port selenium-hub 4444
Expand Down

0 comments on commit 6d41031

Please sign in to comment.