Skip to content

fanatique/vagrant-selenium-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Selenium VM

A very basic Vagrant machine running headless Chrome and Firefox under Ubuntu Linux 14.04.

Requirements

Setup

git clone https://github.com/fanatique/vagrant-selenium-vm.git
cd vagrant-selenium-vm
vagrant up

The provisioning should end with:

...
==> default: Done downloading and installing basic packages
==> default: Starting Xvfb ...
==> default: Starting Google Chrome ...
==> default: Starting Selenium ...

Afterwards the machine runs on a private network and can be found under 192.168.33.10. Selenium is automatically started and runs on port 4444, which is forwarded to the host.

Firefox and Chrome are installed and tested to be available for selenium tests.

Running Selenium tests on the host machine

This machine is intended to be used for running tests against a dev environment that is running on the host. Therefore it often is necessary to add host entries to the guest that point to the IP of the host.

This is done by adding hostnames to the config.yml

vagrantfile:
  host_entries:
    - "some-host.dev"
    - "some-other-host.dev"

All entries will be added to the /etc/hosts file of the guest pointing to the IP of the host machine (which can be found under 192.168.33.1).

About

A simple vagrant machine running headless Chrome and Firefox under Linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages