Selenium WebDriver Practical Guide

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.

Selenium WebDriver Practical Guide

Satya Avasarala

1 customer reviews
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.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782168850
Paperback264 pages

Book Description

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.

Table of Contents

Chapter 1: Introducing WebDriver and WebElements
Understanding the history of Selenium
Setting up a project in Eclipse
WebElements
Summary
Chapter 2: Exploring Advanced Interactions of WebDriver
Understanding actions, build, and perform
Summary
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
Summary
Chapter 4: Different Available WebDrivers
FirefoxDriver
InternetExplorerDriver
ChromeDriver
SafariDriver
OperaDriver
Summary
Chapter 5: Understanding WebDriver Events
Introducing EventFiringWebDriver and EventListener classes
Creating an instance of EventListener
Exploring different WebDriver event listeners
Summary
Chapter 6: Dealing with I/O
Learning about the FileHandler class
Learning about the TemporaryFilesystem class
Learning about the Zip class
Summary
Chapter 7: Exploring RemoteWebDriver and WebDriverBackedSelenium
Introducing RemoteWebDriver
Understanding the JSON wire protocol
Replacing the client library with your own code
Exploring WebDriverBackedSelenium
Summary
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
Summary
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
Summary
Chapter 10: Testing iOS and Android Apps
Different forms of mobile applications
Available software tools
Automating iOS and Android tests using Appium
Summary

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

Authors

Table of Contents

Chapter 1: Introducing WebDriver and WebElements
Understanding the history of Selenium
Setting up a project in Eclipse
WebElements
Summary
Chapter 2: Exploring Advanced Interactions of WebDriver
Understanding actions, build, and perform
Summary
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
Summary
Chapter 4: Different Available WebDrivers
FirefoxDriver
InternetExplorerDriver
ChromeDriver
SafariDriver
OperaDriver
Summary
Chapter 5: Understanding WebDriver Events
Introducing EventFiringWebDriver and EventListener classes
Creating an instance of EventListener
Exploring different WebDriver event listeners
Summary
Chapter 6: Dealing with I/O
Learning about the FileHandler class
Learning about the TemporaryFilesystem class
Learning about the Zip class
Summary
Chapter 7: Exploring RemoteWebDriver and WebDriverBackedSelenium
Introducing RemoteWebDriver
Understanding the JSON wire protocol
Replacing the client library with your own code
Exploring WebDriverBackedSelenium
Summary
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
Summary
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
Summary
Chapter 10: Testing iOS and Android Apps
Different forms of mobile applications
Available software tools
Automating iOS and Android tests using Appium
Summary

Book Details

ISBN 139781782168850
Paperback264 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Selenium Testing Tools Cookbook Book Cover
Selenium Testing Tools Cookbook
$ 26.99
$ 18.90
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Selenium Design Patterns and Best Practices Book Cover
Selenium Design Patterns and Best Practices
$ 19.99
$ 14.00
Selenium 2 Testing Tools: Beginner’s Guide Book Cover
Selenium 2 Testing Tools: Beginner’s Guide
$ 26.99
$ 2.70
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00