Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

selenium Build Status

Set up selenium and Firefox for running selenium tests.


  • java


  • selenium_install_dir: [default: /opt] Install directory
  • 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




- hosts: all
  - selenium

Start/Stop/Restart Selenium

$ service selenium start
$ 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 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 to install an older version of firefox. (38.0 worked for me on Ubuntu 16.04).

License and Author

Author:: Alex Knoll (

Copyright:: 2015, Alex Knoll

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


We welcome contributed improvements and bug fixes via the usual workflow:

  1. Fork this repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new pull request