Exemplo n.º 1
0
        public void BrowsePegasusLoginUrl(String userType)
        {
            //Browse Login Url
            Logger.LogMethodEntry("LoginLogout", "BrowsePegasusLoginUrl",
                                  base.IsTakeScreenShotDuringEntryExit);
            // Pick Url based on user type enum
            loginPage = new BrowsePegasusUserURL((User.UserTypeEnum)
                                                 Enum.Parse(typeof(User.UserTypeEnum), userType));
            //Login  the type of the user
            Boolean isBasePegasusUrlBrowsedSuccessful =
                loginPage.IsUrlBrowsedSuccessful();

            //Check Is Url Browsed Successfully
            if (isBasePegasusUrlBrowsedSuccessful)
            {
                //Open Url in Browser
                loginPage.GoToLoginUrl();
            }
            Logger.LogMethodExit("LoginLogout", "BrowsePegasusLoginUrl",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Exemplo n.º 2
0
        public void BrowseeCollege(string userType)
        {
            Logger.LogMethodEntry("LoginLogout", "BrowseeCollege",
                                  base.IsTakeScreenShotDuringEntryExit);
            // Pick Url based on user type, convert userType to enum to obtain the browsing page

            loginPage = new BrowsePegasusUserURL((User.UserTypeEnum)
                                                 Enum.Parse(typeof(User.UserTypeEnum), userType));

            //Flag successful browsing of page
            Boolean isBasePegasusUrlBrowsedSuccessful =
                loginPage.IsUrlBrowsedSuccessful();

            //Check Is Url Browsed Successfully
            if (isBasePegasusUrlBrowsedSuccessful)
            {
                //Open Url in Browser
                loginPage.GoToLoginUrl();
            }
            Logger.LogMethodExit("LoginLogout", "BrowseeCollege",
                                 base.IsTakeScreenShotDuringEntryExit);
        }