public override void BeforeEachTest() { base.BeforeEachTest(); LoginPage.WaitForPageToLoad(); BackdoorHelpers.BypassLoginScreen(App); FirstPage.WaitForPageToLoad(); }
public override void BeforeEachTest() { base.BeforeEachTest(); LoginPage.WaitForPageToLoad(); App.InvokeBackdoorMethod(BackdoorMethodConstants.BypassLoginScreen); FirstPage.WaitForPageToLoad(); }
virtual public void BeforeEachTest() { app = AppInitializer.StartApp(platform); app.Screenshot("App Initialized"); FirstPage = new FirstPage(app, platform); ListPage = new ListPage(app, platform); LoginPage = new LoginPage(app, platform); NewUserSignUpPage = new NewUserSignUpPage(app, platform); LoginPage.WaitForLoginScreen(); }
public void CreateNewUserAndLogin(bool shouldUseKeyboardReturnButton) { //Arrange var username = _username; var password = "******"; //Act LoginPage.PressSignUpButton(); NewUserSignUpPage.CreateNewUserWithPassword(username, password, shouldUseKeyboardReturnButton); LoginPage.WaitForPageToLoad(); LoginPage.LoginWithUsernamePassword(username, password, shouldUseKeyboardReturnButton); //Assert FirstPage.WaitForPageToLoad(); }
public void CreateNewUserAndLogin(bool shouldUseKeyboardReturnButton) { //Arrange var username = _username; var password = "******"; var expectedFirstPageTitle = "First Page"; //Act LoginPage.PressSignUpButton(); NewUserSignUpPage.CreateNewUserWithPassword(username, password, shouldUseKeyboardReturnButton); LoginPage.WaitForLoginScreen(); LoginPage.LoginWithUsernamePassword(username, password, shouldUseKeyboardReturnButton); //Assert var actualFirstPageTitle = FirstPage.GetTitle(); Assert.AreEqual(expectedFirstPageTitle, actualFirstPageTitle); }
public void EnterText(bool shouldUseKeyboardReturnButton) { //Arrange var textInput = "Hello World"; //Act switch (shouldUseKeyboardReturnButton) { case true: FirstPage.EnterTextAndPressEnter(textInput); break; case false: FirstPage.EnterText(textInput); FirstPage.ClickGo(); break; } FirstPage.WaitForNoActivityIndicator(); //Assert Assert.AreEqual(FirstPage.GetEntryFieldText(), textInput); }