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.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 ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.loginPage = new LoginPage(this.Browser); this.dashboardPage = new AdminDashboardPage(this.Browser); this.rolesPage = new RolesPage(this.Browser); this.mainPage.NavigateTo(this.loginPage.Url); this.loginPage.LoginUser(TelerikUser.Admin); this.mainPage.NavigateTo(this.rolesPage.Url); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.generator = new RandomStringGenerator(); this.loginPage = new LoginPage(this.Browser); this.dashboardPage = new AdminDashboardPage(this.Browser); this.uniPage = new UniversitiesPage(this.Browser); this.mainPage.NavigateTo(this.loginPage.Url); this.loginPage.LoginUser(TelerikUser.Admin); this.mainPage.NavigateTo(this.uniPage.Url); }
public void ThisTestInitialize() { this.mainPage = new MainPage(this.Browser); this.loginPage = new LoginPage(this.Browser); this.mainPage.Navigate().ClickLogin(); }