Exemplo n.º 1
0
 /// <summary>
 /// Change margin of error values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ChangeMarginOfErrorSelection(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.XPath("//input[@id='selMarginOfError'][@value='5']"));
 }
Exemplo n.º 2
0
 /// <summary>
 ///  check Sample size re calculated value
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckSampleSizeReCalculatedValue(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.XPath("//b[contains(text(),'1,537')]"));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Check create button in qcset popup
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckCreateButtonDisabled(IWebDriver driver)
 {
     CommonActions.ElementShouldBeDisabled(driver, By.Id("confirmBtn"));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Verify qcset review ready to start in reviewer dashboard
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void VerifyQcsetReviewReadyToStartState(IWebDriver driver)
 {
     CommonActions.CheckElementEnabledAndText(driver, By.Id("btnVerificationSetReview"), Resources.Project.StartReview);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Check margin of error default selected values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckMarginOfErrorDefaultSelection(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.XPath("//span[@aria-owns='qcSetErrorMarginSelect_listbox']//span//span[contains(text(),'2.5')]"));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Check qcset popup
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckQcSetPopup(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.XPath("//div/h3[contains(text(),'Create Verification Set')]"));
 }
Exemplo n.º 7
0
 public static void CheckStatusForCreateControlset(IWebDriver driver)
 {
     CommonActions.CheckElementEnabledAndText(driver, By.Id("controlsetStatus"), CGN.Paralegal.UI.App.resources.Project.NoControlSet);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Check Next status after clicking cancel in create qcset popup
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void VerifyCreateQcSetIsEnabled(IWebDriver driver)
 {
     CommonActions.ElementShouldBeEnabled(driver, By.Id("btnCreateQCSet"));
 }
Exemplo n.º 9
0
 /// <summary>
 /// Click Cancel for create controlset
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ClickCancelButtonInCreateControlsetPopup(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.XPath("//button[contains(text(),'Cancel')]"));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Check Next status after create controlset
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckNextStatusIsReviewControlset(IWebDriver driver)
 {
     CommonActions.CheckElementEnabledAndText(driver, By.Id("controlsetStatus"), CGN.Paralegal.UI.App.resources.Project.ControlSetReviewNotStarted);
 }
Exemplo n.º 11
0
 /// <summary>
 ///  click on project dashboard link
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ClickOnProjectDashboardLink(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.XPath("//a[@ng-click='ReviewSetController.goToDashboard()']"));
 }
Exemplo n.º 12
0
 /// <summary>
 /// Click not coded list in qcset summary widget
 /// </summary>
 /// <param name="driver"></param>
 public static void VerifyNotCodedDocListInQcSetSummary(IWebDriver driver)
 {
     CommonActions.CheckParentAndClickElement(driver, By.Id("QcSetSummary"), By.Id("Not_Relevant"));
 }
Exemplo n.º 13
0
 /// <summary>
 /// Verify qcset review inprogress state in reviewer dashboard
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void VerifyQcsetReviewInProgressState(IWebDriver driver)
 {
     CommonActions.CheckElementEnabledAndText(driver, By.Id("verificationReviewStatus"),
                                              CGN.Paralegal.UI.App.resources.Project.QCSetReviewInProgress);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Click OK button to create controlset
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ClickOkButtonToCreateControlset(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.Id("confirmBtn"));
 }
Exemplo n.º 15
0
 /// <summary>
 /// Click Create control set button to open Create controlset popup
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ClickStartButtonToOpenCreateControlsetPopup(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.Id("btnCreate1"));
 }
Exemplo n.º 16
0
 /// <summary>
 /// Check Next status after create qcset
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void VerifyQcSetIsCreated(IWebDriver driver)
 {
     CommonActions.ElementShouldBeEnabled(driver, By.Id("verificationSetTab"));
 }
Exemplo n.º 17
0
 /// <summary>
 /// Check controlset popup
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckControlSetPopup(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.Id("modalDialog"));
 }
Exemplo n.º 18
0
 /// <summary>
 /// Check confidence level default selected values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckConfidenceLevelDefaultSelection(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.XPath("//span[@aria-owns='qcSetConfidenceSelect_listbox']//span//span[contains(text(),'95')]"));
 }
Exemplo n.º 19
0
 /// <summary>
 /// Check confidence level default selected values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckConfidenceLevelDefaultSelection(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.XPath("//input[@id='selConfidence'][@value='95']"));
 }
Exemplo n.º 20
0
 /// <summary>
 /// Check sample size default values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckSampleSizeDefaultValue(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.XPath("//b[contains(text(),'1,537')]"));
 }
Exemplo n.º 21
0
 /// <summary>
 /// Check margin of error default selected values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void CheckMarginOfErrorDefaultSelection(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.XPath("//input[@id='selMarginOfError'][@value='2.5']"));
 }
Exemplo n.º 22
0
 public static void CheckQcPredictionErrorMessageDisabled(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.CssSelector(".text-danger.ng-binding.ng-hide"));
 }
Exemplo n.º 23
0
 /// <summary>
 /// Change confidence level values
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ChangeConfidenceLevelSelection(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.XPath("//input[@id='selConfidence'][@value='99']"));
 }
Exemplo n.º 24
0
 public static void EnterQcSetName(IWebDriver driver)
 {
     CommonActions.EnterTextInTextBox(driver, By.XPath("//input[@id='qcSetName']"), Resources.Qcset.QcsetName);
 }
Exemplo n.º 25
0
 /// <summary>
 /// Verify Qcset not created state in reviewer dashboard
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void VerifyQcSetNotCreatedState(IWebDriver driver)
 {
     CommonActions.ElementShouldNotBeNull(driver, By.Id("verificationSetTab"));
     CommonActions.ElementShouldNotBeNull(driver, By.ClassName("disabled-tab"));
 }