© Sujay Raghavendra 2021
S. RaghavendraPython Testing with Seleniumhttps://doi.org/10.1007/978-1-4842-6249-8_11

11. Page Objects

Sujay Raghavendra1  
(1)
Dharwad, Karnataka, India
 

In all the previous chapters, you learned to write various test conditions for the web elements present in a web page. A test case is built by combining these conditions. Building a successful test case requires a model in which all the essential functions and methods are integrated into a single test case or script. When test cases are bundled into a single script, the complexity of the test script increases, which makes it difficult to read, modify, or maintain. Page objects are used to solve jumbled-up test script issues on a web page.

The chapter begins with the discussion ...

Get Python Testing with Selenium: Learn to Implement Different Testing Techniques Using the Selenium WebDriver now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.