Skip to content

Ansible script that installs selenium and all the requirements for the popular webdrivers

License

Notifications You must be signed in to change notification settings

invokemedia/ansible-selenium-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Selenium Setup

Ansible script that installs selenium and all the requirements for the popular webdrivers

This role is meant to be run locally. So see the example playbook for how to do that.

Installation

  • mkdir -p selenium-installation/roles
  • cd selenium-installation
  • touch playbook.yml
  • git clone https://github.com/invokemedia/ansible-selenium-setup roles/invokemedia.selenium-setup

Role Variables

# these ARE NOT browser versions! These are the versions of the drivers to download and install

# geck driver version
gecko_version: 0.17.0
# chrome driver version
chrome_version: 2.9
# safari driver version
safari_version: 2.48
# selenium driver version
selenium_version: 3.4.0

Dependencies

None.

Example Playbook

Here is how you would use the default setup setup.

- hosts: 127.0.0.1
  connection: local
  gather_facts: no
  roles:
    - { role: invokemedia.selenium-setup }

Then use ansible-playbook playbook.yml -i 'localhost,' to play.

This will create a selenium-server.jar in /usr/local/bin/ and also create a /usr/local/bin/selenium which is a script that you can use to simply launch the server.

License

MIT

Author Information

References

About

Ansible script that installs selenium and all the requirements for the popular webdrivers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages