Selenium & Vagrant: Headless Chrome in the same old 2 steps

This is the second instalment of the Selenium guide to end all Selenium guides.

Selenium has a bad rep for being difficult to setup. With a little Vagrant know-how, this guide will lower the bar for good. The previous blog post illustrated how to seamlessly set up Firefox headless, Xvfb, and Selenium 2.42.1 grid & node using Vagrant. Boom, now we got headless Chrome in the same old two steps. Init.d script included as usual.

The following steps are:

1. git clone this repo https://github.com/yveshwang/selenium-2step
2. Vagrant up selenium and point your test to the port forwarded default hub location.

The awesome sauce continues.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s