Have a personal or library account? Click to login
Selenium Testing Tools Cookbook Second Edition Cover

Selenium Testing Tools Cookbook Second Edition

Over 90 recipes to help you build and run automated tests for your web applications with Selenium WebDriver

Paid access
|Nov 2015
Product purchase options

Over 90 recipes to help you build and run automated tests for your web applications with Selenium WebDriver

Key Features

  • Learn to leverage the power of Selenium WebDriver with simple examples that illustrate real-world problems and their workarounds
  • Explains the testing of mobile applications with Appium for mobile platforms such as iOS and Android
  • A pragmatic manual with engaging recipes and attractive screenshots to test your web applications efficiently

Book Description

This book is an incremental guide that will help you learn and use the advanced features of the Selenium toolset including the WebDriver API in various situations to build a reliable test automation. You start off by setting up the test development environment and gain tips on the advanced locater strategy and the effective use of the Selenium WebDriver API.
After that, the use of design patterns such as data - driven tests and PageFactory are demonstrated. You will then be familiarised with extending Selenium WebDriver API by implementing custom tasks and setting up your own distributed environment to run tests in parallel for cross-browser testing.
Finally, we give you some tips on integrating Selenium WebDriver with other popular tools and testing mobile applications. By the end of this book, you will have learned enough to solve complex testing issues on your own.

What you will learn

  • Understand how the locators work and use various locator methods to build reliable tests
  • Build reliable and maintainable tests with the Selenium WebDriver API
  • Use the PageFactory pattern to build a robust and easy to maintain test framework
  • Build data-driven tests and extend Selenium API to implement custom steps and checks
  • Integrate and use ATDD/BDD tools such as Cucumber, SpecFlow, Capybara, and Behave with the Selenium WebDriver API
  • Set up iPhone/iPad and Android simulators and devices to test your mobile web application with Appium
  • Set up Selenium Grid for faster and parallel running of tests, increasing test coverage and reducing test execution time for cross-browser testing
  • Build extended Selenium WebDriver tests for additional coverage

Who this book is for

This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based applications. This books also provides examples for C#, Python and Ruby users.

Table of Contents

  1. Getting Started
  2. Locating Elements
  3. Working with Elements
  4. Working with Selenium API
  5. Syncronizating Tests
  6. Working with Alerts, Frames and Windows
  7. Data-driven Testing
  8. Using the Page Object Model
  9. Extending Selenium
  10. Testing HTML5 Web Applications
  11. Behaviour-driven Development
  12. Integration with other tools
  13. Cross Browser and Distributed Testing with Selenium
  14. Testing Mobile Applications
PDF ISBN: 978-1-78439-077-8
Publisher: Packt Publishing Limited
Copyright owner: © 2015 Packt Publishing Limited
Publication date: 2015
Language: English
Pages: 374