/// <summary>
 /// Launch SMS registration page.
 /// </summary>
 /// <param name="smsUser">This is the type of user performing the operation.</param>
 private void LaunchSMSRegistrationPage(User.UserTypeEnum smsUser)
 {
     // Launch SMS registration page
     Logger.LogMethodEntry("Reg1Page", "CreateBulkUserUsingExcelValues",
                           base.IsTakeScreenShotDuringEntryExit);
     try
     {
         BrowsePegasusUserURL loginPage = new BrowsePegasusUserURL(smsUser);
         //Login  the type of the user
         Boolean isBasePegasusUrlBrowsedSuccessful =
             loginPage.IsUrlBrowsedSuccessful();
         //Check Is Url Browsed Successfully
         if (isBasePegasusUrlBrowsedSuccessful)
         {
             //Open Url in Browser
             loginPage.GoToLoginUrl();
         }
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     Logger.LogMethodExit("Reg1Page", "CreateBulkUserUsingExcelValues",
                          base.IsTakeScreenShotDuringEntryExit);
 }
Example #2
0
        public void BrowsePegasusLoginUrl(string userType)
        {
            //Browse Login Url
            logger.LogMethodEntry("LoginLogout", "BrowsePegasusLoginUrl",
                                  base.isTakeScreenShotDuringEntryExit);
            //Select Default Window
            base.SelectDefaultWindow();
            //Login  the type of the user
            Boolean isUserAlreadyLoggedIn = base.IsElementPresent(By.PartialLinkText
                                                                      (LoginLogoutResource.LoginLogout_Signout_Link_Title_Locator),
                                                                  Convert.ToInt32(LoginLogoutResource.
                                                                                  LoginLogout_Custom_TimeToWait_Element)) || base.IsElementPresent
                                                (By.ClassName(LoginLogoutResource.LoginLogout_DPUser_LN_FN_Class_Locator),
                                                Convert.ToInt32(LoginLogoutResource.LoginLogout_Custom_TimeToWait_Element));

            //Check User Already Logged In
            if (!isUserAlreadyLoggedIn)
            {
                loginPage = new BrowsePegasusUserURL((User.UserTypeEnum)
                                                     Enum.Parse(typeof(User.UserTypeEnum), userType));
                //Open Url in Browser
                loginPage.GoToLoginUrl();
            }
            logger.LogMethodExit("LoginLogout", "BrowsePegasusLoginUrl",
                                 base.isTakeScreenShotDuringEntryExit);
        }
Example #3
0
        public void BrowsePegasusLoginUrl(string userType)
        {
            //Browse Login Url
            Logger.LogMethodEntry("LoginLogout", "BrowsePegasusLoginUrl",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Select Default Window
            base.SelectDefaultWindow();
            // 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();
            }
            else
            {
            }
            Logger.LogMethodExit("LoginLogout", "BrowsePegasusLoginUrl",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Example #4
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);
        }
Example #5
0
        public void BrowsedECollegeLoginURL(String userType)
        {
            //Browse Login Url
            Logger.LogMethodEntry("LoginLogout", "BrowsedECollegeLoginURL",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Login  the type of the user
            Boolean isUserAlreadyLoggedIn = base.IsElementPresent(By.PartialLinkText
                                                                      (LoginLogoutResource.LoginLogout_ECollege_Signoff_PartialTxt_Locator),
                                                                  Convert.ToInt32(LoginLogoutResource.
                                                                                  LoginLogout_Custom_TimeToWait_Element));

            //Check User Already Logged In
            if (!isUserAlreadyLoggedIn)
            {
                // Pick Url based on user type enum
                loginPage = new BrowsePegasusUserURL((User.UserTypeEnum)
                                                     Enum.Parse(typeof(User.UserTypeEnum), userType));
                //Open Url in Browser
                loginPage.GoToLoginUrl();
            }
            Logger.LogMethodExit("LoginLogout", "BrowsedECollegeLoginURL",
                                 base.IsTakeScreenShotDuringEntryExit);
        }