Book Image

Mastering Selenium WebDriver

By : Mark Collin
Book Image

Mastering Selenium WebDriver

By: Mark Collin

Overview of this book

<p>Selenium WebDriver, also known as Selenium 2, is a UI automation tool used by software developers and QA engineers to test their web applications on different web browsers. The Selenium WebDriver API is fully object oriented compared with the deprecated Selenium RC. The WebDriver API provides multi-language support and run tests on all the most popular browsers.</p> <p>In this wide and complex World Wide Web era, this book will teach you how to tame it by gaining an in-depth understanding of the Selenium API.</p> <p>This book starts with how to solve the difficult problems that you will undoubtedly come across as you start using Selenium in an enterprise environment, followed by producing the right feedback when failing, and what the common exceptions are, explain them properly (including the root cause) and tell you how to fix them. You will also see the differences between the three available implicit waits and explicit waits, and learn to working with effective page objects.</p> <p>Moving on, the book shows you how to utilize the Advanced User Interactions API, how you can run any JavaScript you need through Selenium, and how to quickly spin up a Selenium Grid using Docker containers.</p> <p>At the end, the book will discuss the upcoming Selenium W3C specification and how it is going to affect the future of Selenium.</p>
Table of Contents (17 chapters)
Mastering Selenium WebDriver
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Docker


The easiest way to get Docker up and running depends on the operating system that you are using. Docker needs Linux. So, if you are running Linux, the process should be very simple. If you are using Windows or OS X, it's a little bit more complicated because you will need to use a virtual machine to run a Linux image that can run Docker. Let's start with Linux.

Linux

We are going to focus on an Ubuntu install in this section since it is one of the most popular Linux distributions. You don't need to run Ubuntu to be able to install Docker. Docker supports many different Linux distributions, and there are installation instructions for all of them available on the Docker website (for more information, visit https://docs.docker.com/installation/).

With Ubuntu, the first thing that you should do is check out the kernel version that you are running. You can do this with the help of the following command:

uname –r

If you are running a kernel version of 3.10 or higher, you should...