//*********************** //*** 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(); }
/// <summary> /// Verifies successful login /// </summary> /// <returns>Boolean true if successful, false otherwise</returns> private Boolean verifySucessfulLogin() { PageLoaded pl = new PageLoaded(); pl.isDomComplete(driver); Boolean success = false; //If the page header contains "Welcome", then the application is deemed successfully logged into if (getText(elementDictionary["eleHomePageAllContentHeader"]).Contains("Welcome")) { success = true; } return success; }