예제 #1
0
        public void ExploreCareers_CheckingResultsForPolandQA()
        {
            NavigateMainPage.ScroolToJoin(driver);
            NavigateMainPage.ExploreCareers_Find(driver).Click();
            NavigateCareersPage.ExploreAvanadeCareers_Find(driver).Click();

            NavigateAvanadeCareersPage.SearchByKeyword_Find(driver).Click();
            NavigateAvanadeCareersPage.SearchByKeyword_Find(driver).SendKeys("QA");
            NavigateAvanadeCareersPage.HandleTheFilteringThatDoesNotAcceptKeyboardInput(driver, "Poland");
            NavigateAvanadeCareersPage.SearchJobButton_Find(driver).Click();

            NavigateCareersSearchJobsPage.WaitUntilResultsLoad(driver);

            int locatorElementSize = driver.FindElements(By.CssSelector(".job-listing.ng-scope")).Count();

            Assert.Equal(5, locatorElementSize);
        }
예제 #2
0
        public void ExploreCareers_CheckingResultsFor_BA_AustinTexas()
        {
            NavigateMainPage.ScroolToJoin(driver);
            NavigateMainPage.ExploreCareers_Find(driver).Click();
            NavigateCareersPage.ExploreAvanadeCareers_Find(driver).Click();

            NavigateAvanadeCareersPage.SearchByKeyword_Find(driver).Click();
            NavigateAvanadeCareersPage.SearchByKeyword_Find(driver).SendKeys("Austin");
            NavigateAvanadeCareersPage.SearchJobButton_Find(driver).Click();

            NavigateCareersSearchJobsPage.WaitUntilResultsLoad(driver);

            IWebElement businessAnalyst = driver.FindElement(By.XPath("//*[text()[contains(.,'Business Analyst')]]"));

            businessAnalyst.Click();

            IWebElement JobDescription = driver.FindElement(By.XPath("//*[text()[contains(.,'Job Description')]]"));

            int locatorElementSize = driver.FindElements(By.XPath("//*[text()[contains(.,'Bachelor’s Degree in Business or IT.')]]")).Count();

            Assert.True(locatorElementSize != 0);
        }