Giter VIP home page Giter VIP logo

vagrant-selenium's Introduction

vagrant-selenium

Vagrant configuration base on ubuntu/trusty64, ready to be used with Selenium.

Introduction

Selenium allows you to automate tests in Web Browsers. To do so, you need to have selenium webdriver installed for all the browsers that you want to run your test into.

Installation

  1. Install Vagrant
  2. Clone this git repository
  3. Run the command vagrant up

This vagrant works for Virtualbox, on a 64 bits machine.

Browser support

  • Firefox (latest version)
  • Google Chrome (latest version)

The script also installs the latest version of selenium server, and google chrome webdriver.

Why a VM for Selenium?

Installing selenium server and the webdrivers are easy on a machine. However, everytime that you want to run your tests, it opens the browser on top of the other windows, preventing you from doing something else. Unless you use phantomjs, it is not possible to run Chrome or Firefox hidden, without disturbing you on your work.

Thanks to this VM, you only need to start the VM, and all your tests will be run into the VM. You can continue developping in the meanwhile!

How does it work?

When the VM starts, it automatically runs selenium server, along with the google-chrome webdriver. You need to wait a few minutes before running your tests.

On your host machine, you can send the tests on this address: localhost:4444, just as if you installed selenium on your host machine.

How to access the host from the guest machine?

An alias already exists for your convenience: http://host/ will target your host machine.

vagrant-selenium's People

Contributors

anomen avatar ykweyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-selenium's Issues

Firefox 47.0

Unfortunately, there is a new Firefox version (47.0) that is incompatible with this selenium-server. If you installed this VM after 28th June (since the script does sudo apt-get update) you will get Firefox 47.0 and it crashed the Selenium WebDriver. Therefore, you must downgrade it by doing (inside vagrant-selenium VM):

sudo apt-get purge firefox

cd /usr/local

sudo wget http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/46.0.1/linux-x86_64/en-US/firefox-46.0.1.tar.bz2

sudo tar xvjf firefox-46.0.1.tar.bz2

sudo ln -s /usr/local/firefox/firefox /usr/bin/firefox

(Or you can change the script.sh after cloning and before vagrant up to take this into consideration)

Hope to help.

Kind regards,

Andre

Login/password for VM

Cloned repo. Run vagrant up and got a command line prompt to enter login or password.

Is this an issue with VM (README doesn't mention any login or password) or lack of documentation?

Java 8 required for selenium server

Latest selenium server complains that it requires Java 8 to start but default-jre package for ubuntu/trusty64 provides Java 7. Start script should be updated to install Java 8.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.