//***********************
 //*** Build Page Area ***
 //***********************
 /// <summary>
 ///     Constructor that defines the driver for an instance of this page, 
 ///     defines the elements for this page, and launches the application.
 /// </summary>
 /// <param name="testClass"></param>
 public LoginPage(BaseTestClass testClass)
 {
     driver = testClass.getDriver();
     addElements();
     pageLoaded = new PageLoaded(this.driver);
     launchApplication();
 }
Esempio n. 2
0
 public void SetUp()
 {
     //Define the test context which will contain test name and status, for example
     this.testContext = new TestContext(context);
     //Instantiate the BaseTestClass which will create the driver
     baseTestClass = new BaseTestClass("chrome", "", "", "stage", "local");
     //Set the driver for this instance of BaseTestClass
     setDriver(baseTestClass.getDriver());
     //Set the option to either print to console or not
     TestReporter.setPrintToConsole(true);
 }
 /// <summary>
 ///     Constructor that defines page timeouts
 /// </summary>
 /// <param name="testClass">BaseTestClass object that contains the WebDriver</param>
 public BasePageClass_BlueSource(BaseTestClass testClass)
 {
     setDefaultPageLoadTimeout(defaultPageTimeout);
     setImplicitWaitTimeout(defaultImplicitWaitTimeout);
 }
Esempio n. 4
0
 public void SetUp()
 {
     //Define the test context which will contain test name and status, for example
     this.testContext = new TestContext(context);
     //Instantiate the BaseTestClass which will create the driver
     baseTestClass = new BaseTestClass("chrome", "", "", "stage", "local");
     //Set the driver for this instance of BaseTestClass
     setDriver(baseTestClass.getDriver());
     //Set the option to either print to console or not
     TestReporter.setPrintToConsole(true);
 }
Esempio n. 5
0
 /// <summary>
 ///     Contains fields and methods to be used by, or in support of, a page class
 /// </summary>
 /// <param name="testClass">Test class containing the driver</param>
 public BasePageClass(BaseTestClass testClass)
 {
 }