Free Sample
+ Collection

Selenium WebDriver Practical Guide

Satya Avasarala

Creating automation test scripts for your web applications with Selenium WebDriver has never been easier thanks to this user-friendly book. All you need is a basic knowledge of Core Java, and then the practical tutorials supply the rest.
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782168850
Paperback264 pages

About This Book

  • Covers basic to advanced concepts of WebDriver
  • Learn how to design a more effective automation framework
  • Explores all of the APIs within WebDriver
  • Acquire an in-depth understanding of each concept through practical code examples

Who This Book Is For

If you are a quality assurance/testing professional, a software developer, or a web application developer looking to create automation test scripts for your web applications, this is the perfect guide for you! As a prerequisite, a basic knowledge of Core Java is expected, although any previous knowledge of WebDriver or Selenium 1 is not needed.

Table of Contents

Chapter 1: Introducing WebDriver and WebElements
Understanding the history of Selenium
Setting up a project in Eclipse
Chapter 2: Exploring Advanced Interactions of WebDriver
Understanding actions, build, and perform
Chapter 3: Exploring the Features of WebDriver
Setting the desired capabilities for a browser
Taking screenshots
Locating target windows and iFrames
Exploring Navigate
Waiting for WebElements to load
Handling cookies
Chapter 4: Different Available WebDrivers
Chapter 5: Understanding WebDriver Events
Introducing EventFiringWebDriver and EventListener classes
Creating an instance of EventListener
Exploring different WebDriver event listeners
Chapter 6: Dealing with I/O
Learning about the FileHandler class
Learning about the TemporaryFilesystem class
Learning about the Zip class
Chapter 7: Exploring RemoteWebDriver and WebDriverBackedSelenium
Introducing RemoteWebDriver
Understanding the JSON wire protocol
Replacing the client library with your own code
Exploring WebDriverBackedSelenium
Chapter 8: Understanding Selenium Grid
Exploring Selenium Grid
Understanding the hub
Understanding the node
Modifying the existing test script to use Selenium Grid
Configuring Selenium Grid
Chapter 9: Understanding PageObject Pattern
Creating test cases for our WordPress blog
What is the PageObject pattern?
Good practices for the PageObjects design
Understanding loadable components
Working on an end-to-end example of WordPress
Chapter 10: Testing iOS and Android Apps
Different forms of mobile applications
Available software tools
Automating iOS and Android tests using Appium

What You Will Learn

  • Learn the basic design of Selenium WebDriver and understand how it overcomes the limitations of its predecessor
  • Set up and use Selenium Grid
  • Discover the various mechanisms used to locate web elements
  • Perform advanced actions such as drag-and-drop, double-click, right-click, and action builders on web pages
  • Explore the advanced features of WebDriver such as handling cookies, taking screenshotsmanaging timeouts, and browser navigations
  • Acquire an understanding of the various WebDriver implementations such as Firefox Driver, IE Driver, and Chrome Driver
  • Explore WebDriver EventListeners
  • Design effective automation frameworks using the PageObject pattern
  • Learn how to deal with the latest features of WebDriver

In Detail

Selenium WebDriver is an open source web UI automation tool implemented through a browser-specific browser driver, which sends commands to a browser and retrieves results.

Selenium WebDriver Practical Guide will guide you through the various APIs of WebDriver which should be used in automation tests, followed by a discussion of the various WebDriver implementations available. This guide will support you by offering you access to source code fi les, including the essential HTML  fi les, that allow you to work with jQuery and other examples throughout the book. Finally, you will receive an in-depth explanation of how to deal with the latest features of WebDriver through step-by-step practical tutorials.


Read More