All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bichromate.sample.pageDeclaration.sampleTablePageDeclaration Maven / Gradle / Ivy

Go to download

Java, Selenium, Appium, Winium, Extend, and TestNG automated testing framework. Bichromate integrates the best of these frameworks and takes automation to the next level. With Bichromate there is one function call that builds any type of Web,IOS Mobile, Android, and Windows App driver on any platform (Windows, Mac, Linux). From Local web drivers, to SauceLabs, Browserstack, and Selenium grid. Build data driven tests is never easier. Bichromate also gives you built in Factories that, access DBs, Video Capture, FTP, POM Generation, Hilite element.

There is a newer version: 3.13
Show newest version
package bichromate.sample.pageDeclaration;

import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

import org.openqa.selenium.WebDriver;

import bichromate.baseObjectTypes.sTestTableObject;
import bichromate.baseObjectTypes.sTestTextBoxObject;
import bichromate.core.sTestBasePageDeclaration;

/**
 * This class Demonstrates sampleTablePageDeclaration().
 * 
sampleTablePageDeclaration encapsulates all the Selenium elements on the . *
When building new testNG tests, the tester will create a new sTestWebDriverFactory *
and create this page using the newly created a new sTestWebDriverFactory *
EXAMPLE: sTestWebDriverFactory driver = new sTestWebDriverFactory(remote,version,platform,browser,setupString) *
EXAMPLE: driver.getLoginPage().pageURL * @see sTestBasePageDeclaration * @author davidwramer * @version 1.0 */ @SuppressWarnings("unused") public class sampleTablePageDeclaration extends sTestBasePageDeclaration{ static ResourceBundle resources; String tableName = "tableName"; // // Page Elements // private sTestTableObject tableElement = null; static { try { resources = ResourceBundle.getBundle("pageDeclarations.sampleTablePageDeclaration",Locale.getDefault()); } catch (MissingResourceException mre) { System.out.println("sampleTablePageDeclaration.properties not found: "+mre); System.exit(0); } } /** * method This class Demonstrates sampleTablePageDeclaration(). * The sampleTablePageDeclaration uses https://www.w3schools.com/html/html_tables.asp landing page for a table Example * @param driver webDriver * @author davidwramer * @version 1.0 */ public sampleTablePageDeclaration(WebDriver driver){ super(driver,resources); pageTitle = new String(resources.getString("pageTitle")); pageURL = new String(resources.getString("pageURL")); } /** * Method This class Demonstrates geTable() * @return sTestTableObject - table DOM element * @author davidwramer * @version 3.0 */ public sTestTableObject geTable(){ if(null == tableElement) tableElement = new sTestTableObject(driver,findElement(tableName),"sampleTablePageDeclaration",POMLOGGER); return tableElement; } @Override public boolean isAjaxLoaded() { // TODO Auto-generated method stub return true; } }//sampleTablePageDeclaration




© 2015 - 2024 Weber Informatics LLC | Privacy Policy