Book Image

Learning Selenium Testing Tools with Python

By : UNMESH GUNDECHA
Book Image

Learning Selenium Testing Tools with Python

By: UNMESH GUNDECHA

Overview of this book

Table of Contents (17 chapters)
Learning Selenium Testing Tools with Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned how to use the unittest testing library for writing and running tests with Selenium WebDriver. We created a test using the TestClass class with the setUp() and tearDown() methods. We added an assertion to check the expected output with the actual output.

We also learned how to use different types of assertions that are supported by the unittest library. We implemented the test suite that provides the ability to aggregate tests in logical groups. Finally, we used HTMLTestRunner to generate test reports in HTML format that show nicely formatted test results.

In the next chapter, we will learn how to use and define locators to interact with various HTML elements displayed on a page.