Example #1
0
 /// <summary>
 /// Click create button to open Create qcset popup
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ClickCreateButtonToOpenCreateQcSetPopup(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.Id("trainingSetTab"));
     CommonActions.WaitForLoadPage(driver);
     CommonActions.ClickElement(driver, By.Id("btnCreateQCSet"));
     CommonActions.WaitForLoadPage(driver);
 }
Example #2
0
        public void PRC_CreateProject_DoNotProvideProjectInfoAndClickNext_ShouldDisdplayValidationError()
        {
            CommonActions.NavigateToUrl(driver, Settings.PCCreateProjectUrl);
            CommonActions.WaitForLoadPage(driver);

            CreateProjectActions.ClickPrimaryButton(driver);
            CreateProjectActions.ShouldDisdplayValidationErrors(driver);
        }
Example #3
0
        public void PRC_CreateProject_ProvideProjectInfoAndClickNext_ShouldGoToSelectDocumentsPage()
        {
            CommonActions.NavigateToUrl(driver, Settings.PCCreateProjectUrl);
            CommonActions.WaitForLoadPage(driver);

            CreateProjectActions.TypeProjectInfo(driver);
            CreateProjectActions.ClickPrimaryButton(driver); //Click Next
            CommonActions.WaitForLoadPage(driver);

            CreateProjectActions.ShouldDisdplaySelectDocumentsPage(driver);
        }
Example #4
0
        public void PRC_CreateProject_ClickOnCancelButton_ShouldRedirectToAdminDashboard()
        {
            CommonActions.NavigateToUrl(driver, Settings.PCCreateProjectUrl);
            CommonActions.WaitForLoadPage(driver);

            CreateProjectActions.clickCancelBtn(driver);

            CommonActions.WaitForLoadPcDashboardPage(driver);

            CreateProjectActions.IsErrorBlockExists(driver).Should().BeTrue();
        }
Example #5
0
 public void PRC_CreateQcSet_VerifyPredictionCategorizeErrorMessageDisplayedInCreateQcSetPopup_ShouldPass()
 {
     CommonActions.NavigateToUrl(driver, Settings.PCAdminDashboardUrl);
     CommonActions.WaitForLoadPcDashboardPage(driver);
     //add documents to project here
     ProjectDashBoardActions.SelectAddDocuments(driver);
     CommonActions.WaitForLoadPage(driver);
     CreateProjectActions.ClickCreateButton(driver); //Click Create
     CommonActions.WaitForLoadPage(driver);
     CreateQcSetActions.ClickCreateButtonToOpenCreateQcSetPopup(driver);
     CreateQcSetActions.CheckQcSetPopup(driver);
     CreateQcSetActions.CheckQcPredictionErrorMessage(driver);
 }
Example #6
0
        public void PRC_CreateProject_SelectAllDocuments_ShouldCreateProjectAndGotoDashboard()
        {
            CommonActions.NavigateToUrl(driver, Settings.PCCreateProjectUrl);
            CommonActions.WaitForLoadPage(driver);

            CreateProjectActions.TypeProjectInfo(driver);
            CreateProjectActions.ClickPrimaryButton(driver); //Click Next
            CommonActions.WaitForLoadPage(driver);

            CreateProjectActions.ClickCreateButton(driver); //Click Create

            CommonActions.WaitForLoadPcDashboardPage(driver);

            CreateProjectActions.IsProjectStatusExists(driver).Should().BeTrue();
        }
        public void PRC_CreateControlSet_ClickOkInCreateControlSetPopUp_ShouldCreateControlSet()
        {
            CommonActions.NavigateToUrl(driver, Settings.PCAdminDashboardUrl);

            CommonActions.WaitForLoadPcDashboardPage(driver);

            CreateControlsetActions.ClickStartButtonToOpenCreateControlsetPopup(driver);

            CommonActions.WaitForLoadPage(driver);

            CreateControlsetActions.CheckControlSetPopup(driver);

            CreateControlsetActions.ClickOkButtonToCreateControlset(driver);

            CommonActions.WaitForLoadPage(driver);

            CommonActions.RefreshMainWindow(driver);

            CreateControlsetActions.CheckNextStatusIsReviewControlset(driver);

            CreateControlsetActions.SwitchToMainWindow(driver);
        }
Example #8
0
 /// <summary>
 /// Click create button to create qcset
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 public static void ClickCreateButtonInCreateQcSetPopup(IWebDriver driver)
 {
     CommonActions.ClickElement(driver, By.XPath("//div[@class='modal-footer']//button[contains(text(),'Create')]"));
     CommonActions.WaitForLoadPage(driver);
 }