Book Image

Selenium Fundamentals

By : Patrick Viafore
Book Image

Selenium Fundamentals

By: Patrick Viafore

Overview of this book

We’ll begin this course by understanding the importance of automating tests. Then, we will learn how to choose good selectors for navigating through your web application while highlighting best practices and techniques. After writing your first tests, you will go through the object model to help create your own advanced test cases. You will learn how to analyze a test report, track timing errors, and separate real issues from "flaky" tests. You will also learn how to configure and connect to a local grid, a network grid, and a third-party service. By the end of the course, you will have the skills you need to run automated tests on your own web application. GitHub link for this course - https://github.com/TrainingByPackt/Selenium-Fundamentals-eLearning
Table of Contents (9 chapters)
Chapter 5
Waiting for Elements
Content Locked
Section 5
Waiting for an Element with a Custom Written Condition
As we already know, explicit waits allow us to build a test using many pre-conditions that are provided by the ExpectedConditions class. But what if these conditions are not sufficient to recreate a test scenario? The good news is that we can implement the ExpectedCondition interface to create custom wait conditions as needed. Let us learn how!