Exemple #1
0
 public void WhenIAmOnTheExhibitPage()
 {
     _casesPage = _homePage.GoToCases();
     //Select the case with the exhibit that was processed in the previous step
     _exhibitsPage = _casesPage.SelectCaseByPoliceFileNumber(_casePoliceNumber);
     _exhibitsPage.SelectProcessedExhibitFromListByEclExhibitNumber(_eclExhibitNumber);
 }
Exemple #2
0
        public void User_Can_Remove_Buttons_from_Cases_tab()
        {
            CasesPage.GoTo();
            CasePage.RemoveButtons();

            Assert.IsTrue(CasePage.ButtonsRemoved(), "Removal of Send Text Message button failed.");
            CasePage.ReturnToHomePage();
        }
 public void WhenIGoToTheSearchPage()
 {
     //Navigate to cases page
     _casesPage = _homePage.GoToCases();
     //Select the case with the exhibit that was processed in the previous step
     _casesPage.SelectCaseByPoliceFileNumber(_casePoliceNumber);
     //Navigate to search page
     _searchPage = _casesPage.GoToSearchPage();
 }
Exemple #4
0
        public void WhenIClickAccept()
        {
            CasesPage casesPage = new CasesPage(driver);

            //Those methods did not work, need to use javascript

            /*
             * casesPage.acceptButton.Click();
             * Actions actions = new Actions(driver);
             * actions.MoveToElement(casesPage.acceptButton).Click().Build().Perform();
             * actions.MoveToElement(casesPage.acceptButton).SendKeys(Keys.Space);
             */

            ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].click();", casesPage.acceptButton);
        }
Exemple #5
0
        public void WhenIFillAllRequireFields(Table table)
        {
            CasesPage casesPage = new CasesPage(driver);

            casesPage.jobTitle.SendKeys(table.Rows[0][0]);
            casesPage.firstName.SendKeys(table.Rows[0][1]);
            casesPage.lastName.SendKeys(table.Rows[0][2]);
            casesPage.emailAddress.SendKeys(table.Rows[0][3]);
            casesPage.telephone.SendKeys(table.Rows[0][4]);
            casesPage.companyName.SendKeys(table.Rows[0]["CompanyName"]);

            var selectElement = new SelectElement(casesPage.country);

            selectElement.SelectByValue(table.Rows[0]["Country"]);
        }
Exemple #6
0
        public void WhenISearchForAIn(string expectedText, string plugin)
        {
            //Navigate to cases page
            _casesPage = _homePage.GoToCases();
            //Select the case with the exhibit that was processed in the previous step
            _casesPage.SelectCaseByPoliceFileNumber(_casePoliceNumber);
            //Navigate to search page
            _searchPage = _casesPage.GoToSearchPage();


            switch (plugin)
            {
            case "Mobile Content":
                //Navigate to Mobile content search
                _searchPage = _searchPage.GoToSearchMobileContentPage();
                //Search mobile content for a keyword
                _searchPage.SearchMobileContent(expectedText);
                break;

            case "File Metadata":
                //Navigate to Filemetadata search
                _searchPage = _searchPage.GoToSearchFileMetadataPage();
                //Search Filemetadata for a keyword
                _searchPage.SearchFileMetadata(expectedText);
                break;

            case "Images plugin":
                //Navigate to Image search
                _searchPage = _searchPage.GoToSearchImagesPlugin();
                //Search Image for a keyword
                _searchPage.SearchImages(expectedText);
                break;

            case "Video plugin":
                //Navigate to Image search
                _searchPage = _searchPage.GoToSearchVideoPlugin();
                //Search Image for a keyword
                _searchPage.SearchVideo(expectedText);
                break;

            case "Content Search":
                //Navigate to Content search
                _searchPage = _searchPage.GoToSearchContentPlugin();
                //Search Content for a keyword
                _searchPage.SearchContent(expectedText);
                break;
            }
        }
Exemple #7
0
 public void GivenIAmOnCasesPage()
 {
     _casesPage = _homePage.GoToCases();
 }
 public void WhenITryToLogInWithValidDetails()
 {
     _loginDataModel = new LoginDataModel().BuildModel(LoginDataModel.DataInstance.ValidDetails);
     _casePage       = _loginPage.LogInWithValidDetails(_loginDataModel);
 }
Exemple #9
0
        public void WhenIClickDownloadButton()
        {
            CasesPage casesPage = new CasesPage(driver);

            casesPage.downloadPDFButton.Click();
        }