Selenium with Python - A Beginner’s Guide

Pallavi R Sharma

Language: English

Publisher: BPB Publications

Published: Oct 4, 2019

Description:

Step by step directions to get started with Selenium using Python as a programming languageDESCRIPTIONÊSelenium is the most popular open source test automation tool available in the market. In the last decade, its usage has dramatically increased in the IT sector across all types of organizations. The reason for its popularity is mainly because it supports multiple programming languages, test executions on multiple browsers and operating systems. In this book, we will learn about the different components of Selenium.ÊWe will discuss the concepts of WebDriver and learn how to apply test automation concepts with it to automate the testing of our application. We will learn the process of recognizing the test objects on the screen and writing Selenium commands using Python as a programming languageWe will also discuss how to use design patterns like the page object mode and data-driven testing to ensure building a robust test framework, which is modular and scalable in nature.

KEY FEATURES Get introduced to the world of SeleniumUnderstand the concept of locators in SeleniumLearn how to write scripts using Selenium WebDriver in PythonLearn the concepts of synchronizationLearn how to handle different HTML elements like form, table, alert, frame, and dropdownLearn about design patterns like the page object model, data-driven tests, and adding assertionsWHAT WILL YOU LEARNThe objective is to introduce the world of Selenium to a manual tester who knows Python as a programming language. You will learn to demystify the concept of identifying test objects and writing Selenium commands to create robust test scripts. This book will help learn to automate different HTML elements, which we come across in the web applications we need to test. You will understand how to build a good test suite by learning the concept of design patterns like the page object model and data-driven tests to ensure maintainability of code.

WHO THIS BOOK IS FORÊThis book is for people who have experience in manual testing and knowledge in Python as a programming language.ÊThis book will also be helpful for a developer who knows Python as a programming language and is looking for test automation as a career option.

Table of Contents1. Selenium - Important Conceptual Background2. Selenium IDE3. Locators in Selenium4. Installation and Setup5. Selenium WebDriver6. Unit Test Creation n Python7. Synchronizing Tests8. Parameterization of Tests9. Handling Different Web Elements10. Working with Frames11. Concept of the Page Object Model12. Implementing Selenium Grid