Loading the Components
This lesson introduces a class called LoadableComponent and explains why and how to use it.
We'll cover the following...
What is LoadableComponent? #
LoadableComponent
is a base class that aims to ensure:
- Pages are loaded.
- The initial state of the page is asserted.
- The elements are intractable before we use them.
It helps in debugging the failure of a page to load and in reducing flakiness due to page load issues.
Without LoadableComponent
#
Following is a sample LoginPage.java (Page Object) without LoadableComponent
.
package com.example.webdriver;
import org.openqa.selenium.By;
import
...