Limit search to available items
Book Cover
E-book
Author Raghavendra, Sujay, author

Title Python testing with Selenium : learn to implement different testing techniques using the Selenium Webdriver / Sujay Raghavendra
Published New York, NY : Apress Media LLC, [2021]

Copies

Description 1 online resource (184 pages) : illustrations
Contents Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Acknowledgments -- Introduction -- Chapter 1: Introduction to Selenium -- What Is Selenium? -- Selenium Tools and Versions -- Selenium RC (Remote Control) -- Selenium IDE -- Selenium Grid -- Selenium WebDriver -- Selenium 2.0 -- Selenium 3.0 -- Selenium WebDriver Architecture -- Client Library -- JSON Wire Protocol -- Web Drivers -- Web Browsers -- Why Selenium? -- Open Source -- Platforms -- Language Support -- Browser -- Reuse -- Easy Implementation -- Flexible -- Hardware Resources -- Simulation
Other Testing Tools -- Integrating Python with Selenium -- Summary -- Chapter 2: Getting Started -- Installing Python -- Installing Selenium -- Installing Drivers -- Browser Commands -- Opening a Web Browser -- Mozilla Firefox -- Google Chrome -- Microsoft Edge -- Internet Explorer -- Closing a Browser -- Quit Browser -- Opening a Web Page -- Open a Page Online -- Open a Page Offline -- Setting the Browser Size -- Maximize -- Fullscreen -- Setting the Size -- Setting the Browser Position -- Setting the Size Using Coordinates -- Getting the Browser Position -- Getting the Window Size
Navigation Commands -- Back -- Forward -- Refresh -- Running a Python Test Case -- Summary -- Chapter 3: Mouse and Keyboard Actions -- Action Chains -- Mouse -- Click -- Click and Hold -- Context Click -- Double Click -- Move to an Element -- Move Offset -- Drag and Drop -- Drag and Drop By -- Release -- Keyboard Actions -- Key Down -- Key Up -- Send Keys -- Send Keys to Element -- Pause -- Reset -- Summary -- Chapter 4: Web Elements -- Elements/Web Elements -- Web Locators -- Locating Elements -- ID Locator -- Name Locator -- XPath Locator -- Nodes -- Parents -- Children -- Siblings
Atomic Values -- XPath Methods -- Child -- Parent -- Self-Axis -- Ancestor -- Ancestor-or-Self -- Descendant -- Descendant or Self -- Following -- Following Sibling -- Preceding -- Preceding Sibling -- Attribute -- Namespace -- Node Example -- XPath Locator Types -- Absolute Path -- Relative Path -- XPath with Logical Operators -- AND -- OR -- Types of XPath Functions -- contains() -- text() -- starts-with() -- CSS Selectors -- ID -- Class -- Substring Match Cases -- Inner Text -- CSS Selector for Multiple Attributes -- CSS Selector for Child Elements -- Link Locator -- Partial Link Locator
Tag Name -- Class Name -- Locating Multiple Web Elements -- Locator Issues -- Attribute Change -- No Web Element -- Web Element Not Visible -- Test Case Mismatch -- iframe Web Element -- Summary -- Chapter 5: Navigation -- Hyperlinks -- Testing Hyperlinks -- Hyperlink by ID -- Hyperlink by Text -- Hyperlink by Partial Link -- Hyperlink by XPath -- Nth Hyperlink -- Return All Hyperlinks -- Check for a Valid Hyperlink -- Check for Broken Images -- Data Attributes Hyperlink -- Summary -- Chapter 6: Buttons -- Default Button -- Select -- Select by ID -- By Text -- By Name -- Submit/Form Button
Summary Implement different testing techniques using Selenium WebDriver with the Python programming language. This quick reference provides simple functional test cases with a syntax-based approach for Selenium WebDriver. You'll begin by reviewing the basics of Selenium WebDriver and its architectural design history and then move on to the configuration and installation of Selenium library for different web browsers, including the basic commands needed to start test scripts in various browsers. You'll review action commands of keyboard and mouse for testing user interactions in a web page and see how hyperlinks are tested. The book also examines various web elements using eight different locators provided by Selenium to help you choose the one best suited to your needs. All Python scripts are ready to test real examples, all of which are explained thoroughly with problem statements. You'll use different Python design patterns to automate test scripts that can be incorporated with Selenium. In the end, Python Testing with Selenium will provide you with the expertise to write your own test cases in future. What You'll Learn Install and configure Selenium WebDriver with Python for different web-browsers Review basic commands of Selenium Locate web elements Work with UI based web elements Assert web elements and handle exceptions Write test scripts in Page Object Model Write test cases with Unittest framework Who This Book Is For Python developers/testers who want to test their web applications
Notes Includes index
Print version record
SUBJECT Selenium (Software framework) http://id.loc.gov/authorities/names/n2017044368
Selenium (Software framework) fast
Subject Python (Computer program language) -- Testing
Software frameworks -- Testing
Programming languages (Electronic computers) -- Testing
Programming languages (Electronic computers) -- Software
Computer software -- Validation.
Software Validation
Computer software -- Validation
Programming languages (Electronic computers)
Genre/Form Software
Form Electronic book
ISBN 9781484262498
1484262492
9781484262504
1484262506