Learning Selenium Testing Tools with Python

A practical guide on automated web testing with Selenium using Python
Preview in Mapt

Learning Selenium Testing Tools with Python

Unmesh Gundecha

1 customer reviews
A practical guide on automated web testing with Selenium using Python
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.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning Selenium Testing Tools with Python Book Cover
Learning Selenium Testing Tools with Python
$ 26.99
$ 18.90
Selenium Testing Tools Cookbook - Second Edition Book Cover
Selenium Testing Tools Cookbook - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $27.98
Add to Cart

Book Details

ISBN 139781783983506
Paperback216 pages

Book Description

Selenium WebDriver is a popular automated testing tool for web applications. Python is one of the top programming languages and when used with Selenium it can automate and test web applications. Using Python's unittest module, you can write test cases in Selenium. Over the years, Selenium has become a very powerful testing platform and many organizations are adopting Selenium WebDriver for creating automated user interface tests.

The book's main aim is to cover the fundamentals related to Python Selenium testing. You will learn how the Selenium WebDriver Python API can be integrated with CI and Build tools to allow tests to be run while building applications. This book will guide you through using the Selenium WebDriver Python client library as well as other tools from the Selenium project. Towards the end of this book, you'll get to grips with Selenium Grid, which is used for running tests in parallel using nodes for cross-browser testing. It will also give you a basic overview of the concepts, while helping you improve your practical testing skills with Python and Selenium.

Table of Contents

Chapter 1: Getting Started with Selenium WebDriver and Python
Preparing your machine
Taking your first steps with Selenium and Python
Cross-browser support
Summary
Chapter 2: Writing Tests Using unittest
The unittest library
Generating the HTML test report
Summary
Chapter 3: Finding Elements
Using developer tools to find locators
Finding elements with Selenium WebDriver
Putting all the tests together using find methods
Summary
Chapter 4: Using the Selenium Python API for Element Interaction
Elements of HTML forms
Understanding the WebDriver class
Understanding the WebElement class
Working with forms, textboxes, checkboxes, and radio buttons
Working with dropdowns and lists
Working with alerts and pop-up windows
Summary
Chapter 5: Synchronizing Tests
Using implicit wait
Using explicit wait
The expected condition class
Implementing custom wait conditions
Summary
Chapter 6: Cross-browser Testing
The Selenium standalone server
Running a test on the Selenium standalone server
Selenium Grid
Mac OS X with Safari
Running tests in Grid
Running tests in a cloud
Summary
Chapter 7: Testing on Mobile
Introducing Appium
Installing Appium
Testing on iOS
Testing on Android
Using Sauce Labs
Summary
Chapter 8: Page Objects and Data-driven Testing
Data-driven testing
Using ddt for data-driven tests
Using external data sources for data-driven tests
The page objects pattern
Summary
Chapter 9: Advanced Techniques of Selenium WebDriver
Methods for performing keyboard and mouse actions
Executing JavaScript
Capturing screenshots of failures
Handling pop-up windows
Managing cookies
Summary
Chapter 10: Integration with Other Tools and Frameworks
Behavior-Driven Development
CI with Jenkins
Summary

What You Will Learn

  • Create Selenium WebDriver tests using the Python unittest module
  • Use Selenium WebDriver for cross-browser testing
  • Build reliable and robust tests using implicit and explicit waits
  • Set up and use Selenium Grid for distributed run
  • Test web applications on mobile platforms such as iOS and Android using Appium
  • Utilize various methods provided by Selenium WebDriver to locate web elements and interact with them
  • Capture screenshots and videos of the test execution

Authors

Table of Contents

Chapter 1: Getting Started with Selenium WebDriver and Python
Preparing your machine
Taking your first steps with Selenium and Python
Cross-browser support
Summary
Chapter 2: Writing Tests Using unittest
The unittest library
Generating the HTML test report
Summary
Chapter 3: Finding Elements
Using developer tools to find locators
Finding elements with Selenium WebDriver
Putting all the tests together using find methods
Summary
Chapter 4: Using the Selenium Python API for Element Interaction
Elements of HTML forms
Understanding the WebDriver class
Understanding the WebElement class
Working with forms, textboxes, checkboxes, and radio buttons
Working with dropdowns and lists
Working with alerts and pop-up windows
Summary
Chapter 5: Synchronizing Tests
Using implicit wait
Using explicit wait
The expected condition class
Implementing custom wait conditions
Summary
Chapter 6: Cross-browser Testing
The Selenium standalone server
Running a test on the Selenium standalone server
Selenium Grid
Mac OS X with Safari
Running tests in Grid
Running tests in a cloud
Summary
Chapter 7: Testing on Mobile
Introducing Appium
Installing Appium
Testing on iOS
Testing on Android
Using Sauce Labs
Summary
Chapter 8: Page Objects and Data-driven Testing
Data-driven testing
Using ddt for data-driven tests
Using external data sources for data-driven tests
The page objects pattern
Summary
Chapter 9: Advanced Techniques of Selenium WebDriver
Methods for performing keyboard and mouse actions
Executing JavaScript
Capturing screenshots of failures
Handling pop-up windows
Managing cookies
Summary
Chapter 10: Integration with Other Tools and Frameworks
Behavior-Driven Development
CI with Jenkins
Summary

Book Details

ISBN 139781783983506
Paperback216 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Selenium Testing Tools Cookbook - Second Edition Book Cover
Selenium Testing Tools Cookbook - Second Edition
$ 35.99
$ 25.20
Mastering Selenium WebDriver Book Cover
Mastering Selenium WebDriver
$ 35.99
$ 25.20
Learning Selenium Testing Tools - Third Edition Book Cover
Learning Selenium Testing Tools - Third Edition
$ 26.99
$ 18.90
Zen Cart: E-commerce Application Development Book Cover
Zen Cart: E-commerce Application Development
$ 29.99
$ 21.00
Python: Journey from Novice to Expert Book Cover
Python: Journey from Novice to Expert
$ 69.99
$ 49.00
Selenium Essentials Book Cover
Selenium Essentials
$ 23.99
$ 16.80