Browser test class and data files
The following code is for the PassionTeaCoTest.java
andPassionTeaCo.json
classes:
PassionTeaCoTest.java
The following code is for the PassionTeaCoTest.java
class:
import com.framework.ux.utils.chapter10.PassionTeaCoWelcomePO.WELCOME_PAGE_IMG; import com.framework.ux.utils.chapter10.PassionTeaCoWelcomePO.MENU_LINKS; import org.json.simple.JSONObject; import org.openqa,selenium.WebDriver; import org.openqa.selenium.WebElement; import org.testng.ITestContext; import org.testng.ITestResult; import org.testng.annotations.*; import org.testng.annotations.Optional; /** * @author Carl Cocchiaro * * Passion Tea Co Test Class * */ public class PassionTeaCoTest { // local vars private PassionTeaCoWelcomePO<WebElement> welcome = null; private static final String DATA_FILE = "src/main/java/com/framework/ux/utils/chapter10/PassionTeaCo.json"; // constructor public PassionTeaCoTest() throws Exception { } // setup/teardown methods /**...