コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 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);
 }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        public void ThisTestInitialize()
        {
            this.mainPage = new MainPage(this.Browser);
            this.loginPage = new LoginPage(this.Browser);

            this.mainPage.Navigate().ClickLogin();
        }