public static void AddFriend(Browser browser) { loginPage = new LoginPage(browser); loginPage.LoginUser(TelerikUser.Related1); mainPage = new MainPage(browser); mainPage.NavigateTo(TelerikUser.Related2.Url); userPage = new UserProfilePage(browser); if (userPage.AddFriendButton != null && userPage.AddFriendButton.IsVisible()) { userPage.ClickAddFriendButton(); mainPage.ClickLogout(); mainPage.NavigateTo(loginPage.Url); loginPage.LoginUser(TelerikUser.Related2); friendsPage = new FriendsPage(browser); mainPage.NavigateTo(friendsPage.Url); friendsPage.ClickApproveFriendshipIcon(); } mainPage.ClickLogout(); mainPage.NavigateTo(loginPage.Url); loginPage.LoginUser(TelerikUser.Related1); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.mainPage.Navigate().ClickLogin(); this.loginPage = new LoginPage(this.Browser); this.loginPage.LoginUser(TelerikUser.Admin); this.mainPage.ClickAdminNavigationDropdown(); this.dashboardPage = new AdminDashboardPage(this.Browser); this.dashboardPage.ClickCommentsButton(); this.commentsPage = new CommentsPage(this.Browser); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.mainPage.Navigate().ClickLogin(); this.loginPage = new LoginPage(this.Browser); this.loginPage.LoginUser(TelerikUser.Admin); this.mainPage.ClickAdminNavigationDropdown(); this.dashboardPage = new AdminDashboardPage(this.Browser); this.dashboardPage.ClickWorkEducationStatusesButton(); this.workEducationStatusesPage = new WorkEducationStatusesPage(this.Browser); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.coursesPage = new CoursesPage(this.Browser); this.loginPage = new LoginPage(this.Browser); this.registrationPage = new RegistrationPage(this.Browser); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.registrationPage = new RegistrationPage(this.Browser); this.mainPage.Navigate().ClickRegistration(); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.loginPage = new LoginPage(this.Browser); this.userPage = new UserProfilePage(this.Browser); this.messagesPage = new MessagesPage(this.Browser); this.mainPage.NavigateTo(this.loginPage.Url); }
public void LoginPersistenceAdminUserOnBrowserRestart() { this.loginPage.LoginUser(TelerikUser.Admin); this.mainPage.AssertUserIsLoggedAsAdmin(); this.Browser.Close(); Manager.Current.LaunchNewBrowser(); this.Browser = Manager.Current.ActiveBrowser; this.mainPage = new MainPage(this.Browser); this.mainPage.Navigate(); this.mainPage.AssertUserIsLoggedAsAdmin(); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.loginPage = new LoginPage(this.Browser); this.mainPage.Navigate().ClickLogin(); }