public void WhenIChooseToLogOut() { _DashboardPage.BottomMenuOptions.More.Click(); _DashboardPage.WaitForElementPresent(_DashboardPage.MoreMenuOptions.LogOut, 3); _DashboardPage.ScrollDownTo(_DashboardPage.MoreMenuOptions.LogOut.Locator); _DashboardPage.MoreMenuOptions.LogOut.Click(); _DashboardPage.WaitForElementPresent(_DashboardPage.MoreMenuOptions.YesLogOut, 3); _DashboardPage.MoreMenuOptions.YesLogOut.Click(); }
public void WhenIChooseAlreadyHaveAnAccount() { if (!_CreateAccountPage.AlreadyHaveAccount.Displayed()) { _DashboardPage.ScrollDownTo(_CreateAccountPage.AlreadyHaveAccount.Locator); } if (AppInitializer.CurrentPlatform == Platform.iOS) { //This is here due to the above code not working on iOS app.ScrollDown(); } _CreateAccountPage.AlreadyHaveAccount.Click(); }
public void ThenIShouldBeNavigatedToTheSavingsCardPage() { _DashboardPage.ScrollDownTo(_SavingsCardPage.SaveToDashboard.Locator); Assert.IsTrue(_SavingsCardPage.SaveToDashboard.Displayed(), "no on the savings card page."); }