The following code is for the PassionTeaCoBasePO.java and PassionTeaCoWelcomePO.java classes:
Browser page object base and subclasses
PassionTeaCoBasePO.java
The following code is for the PassionTeaCoBasePO.java class:
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import static org.testng.Assert.assertEquals;
/**
* @author Carl Cocchiaro
*
* Passion Tea Company Base Page Object Class
*
*/
public abstract class PassionTeaCoBasePO<M extends WebElement> {
// local variables
protected String pageTitle = "";
// constructor
public PassionTeaCoBasePO() throws Exception...