示例#1
0
 public UsersPage VerifySupportOpIsStandalone()
 {
     commonFeatures.ClickEdit();
     SelectRoleByIndex("5");
     IsElementDisplayed(SupportOp_Standalone_ErrorMsg);
     ClickOn(Btn_Cancel);
     driver.SwitchTo().Alert().Accept();
     Wait(1);
     driver.SwitchTo().Alert().Accept();
     return(new UsersPage());
 }
示例#2
0
 public OrganisationPage VerifyGuidanceToolTip(string OrganisationName, string TextToVerify)
 {
     try
     {
         commonFeatures.Search(OrganisationName);
         commonFeatures.ClickEdit();
         ClickOn(Link_OperatorBranding);
         ClickOn(HelpIcon_GuidanceHTML);
         string value = ToolTip.Text;
         if (value.Contains(TextToVerify))
         {
             ExtentReportUtil.report.Log(Status.Pass, "Matches with expected Value -- " + TextToVerify);
         }
         else
         {
             ExtentReportUtil.report.Log(Status.Fail, "Values do not match. Actual Value --  " + value);
         }
     }
     catch (Exception ex)
     {
         ExtentReportUtil.report.Log(Status.Fail, "Exception occurred in VerifyGuidanceToolTip() method " + ex.ToString());
     }
     return(new OrganisationPage());
 }