Skip to content

Commit

Permalink
Issue #3 - Set chrome as default browser
Browse files Browse the repository at this point in the history
  • Loading branch information
arknoll committed Oct 11, 2016
1 parent 9332368 commit d596d68
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Set up selenium and Firefox for running selenium tests.
#### Variables

* `selenium_install_dir`: [default: `/opt`] Install directory
* `selenium_version`: [default: `2.44.0`] Install version
* `selenium_install_firefox`: [default: `yes`] Whether to install FireFox
* `selenium_install_chrome`: [default: `no`] Whether to install Google Chrome
* `selenium_version`: [default: `2.53.0`] Install version
* `selenium_install_firefox`: [default: `no`] Whether to install FireFox
* `selenium_install_chrome`: [default: `yes`] Whether to install Google Chrome

## Dependencies

Expand All @@ -34,6 +34,22 @@ $ service selenium stop
$ service selenium restart
```

#### Known issue with Firefox

For some OS combinations the package manager version of Firefox
doesn't work appropriately with Selenium. In these circumstances
you may see an error like:

```
WebDriver\Exception\UnknownError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
```

Chrome and chromedriver don't appear to have this issue. If
possible, use Chrome. If you still want to use firefox, then
I suggest using https://galaxy.ansible.com/arknoll/firefox/
to install an older version of firefox. (38.0 worked for me
on Ubuntu 16.04).

#### License and Author

Author:: Alex Knoll ([email protected])
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# defaults file for selenium
selenium_install_dir: /opt
selenium_version: "2.53.0"
selenium_install_firefox: yes
selenium_install_chrome: no
selenium_install_firefox: no
selenium_install_chrome: yes

0 comments on commit d596d68

Please sign in to comment.