/// <summary> /// Check Doc Review Exists /// </summary> /// <param name="driver"></param> public static bool IsShouldOpenDocReviewAndDocList(IWebDriver driver) { try { CommonActions.ElementShouldNotBeNull(driver, By.XPath("//a[text()='View Set']")); } catch (Exception) { return(false); } return(true); }
public static void DisableAutoAdvance(IWebDriver driver) { CommonActions.ElementShouldNotBeNull(driver, By.Id("autoAdvance")); CommonActions.ClickElement(driver, By.Id("autoAdvance")); }
public static void ShouldDisdplaySelectDocumentsPage(IWebDriver driver) { CommonActions.ElementShouldNotBeNull(driver, NgBy.Model("ProjectWizardController.selectedOption")); }
public static void ShouldDisdplayValidationErrors(IWebDriver driver) { CommonActions.ElementShouldNotBeNull(driver, NgBy.Binding("ProjectWizardController.ProjectNameErrorMessage")); CommonActions.ElementShouldNotBeNull(driver, NgBy.Binding("ProjectWizardController.FieldPrefixErrorMessage")); }
/// <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')]")); }
public static void CheckQcPredictionErrorMessageDisabled(IWebDriver driver) { CommonActions.ElementShouldNotBeNull(driver, By.CssSelector(".text-danger.ng-binding.ng-hide")); }
/// <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')]")); }
/// <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')]")); }
/// <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')]")); }
/// <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']")); }
/// <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']")); }
/// <summary> /// Check controlset popup /// </summary> /// <param name="driver">IWebDriver</param> public static void CheckControlSetPopup(IWebDriver driver) { CommonActions.ElementShouldNotBeNull(driver, By.Id("modalDialog")); }
/// <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")); }