Ejemplo n.º 1
0
        public void VerifyJobSite()
        {
            try
            {
                TRAssert.AreEqual(3, this.jobsPage.FilterCount, "Jobs filter count is not as expected.");
                TRAssert.IsNotNull(this.jobsPage.GetFilterByName("city"), "City filter is not present.");
                TRAssert.IsNotNull(this.jobsPage.GetFilterByName("team"), "team filter is not present.");
                TRAssert.IsNotNull(this.jobsPage.GetFilterByName("work type"), "work type is not present.");

                List <JobPosting> displayedJobs = this.jobsPage.GetJobPostings();

                if (displayedJobs == null)
                {
                    TRAssert.IsNotNull(this.jobsPage.NoPostingsMessage, "No postings message is not displayed");
                }
                else
                {
                    TRAssert.Pass("Job postings are displayed");
                }
            }
            catch (Exception ex)
            {
                TRAssert.Fail("Error while verifying job site", ex);
            }
        }
Ejemplo n.º 2
0
        public void VerifyJobPostingCity(string city)
        {
            try
            {
                List <JobPosting> jobPostings = this.jobsPage.GetJobPostings();

                foreach (var job in jobPostings)
                {
                    TRAssert.AreEqual(city.ToLower(), job.Location.ToLower(), "city name not as per filter for job : " + job.Title);
                }
            }
            catch (Exception ex)
            {
                TRAssert.Fail("Error while verifying job posting city. ", ex);
            }
        }
Ejemplo n.º 3
0
        public void VerifyCareersPageSections()
        {
            try
            {
                TRAssert.AreEqual(8, this.careersPage.Sections.Count, "Number of sections are wrong");

                TRAssert.IsTrue(this.careersPage.CallOutSection.GetAttribute("class").Contains("callout"), "Callout section is not present at the top");
                TRAssert.IsNotNull(this.careersPage.VideoSection.FindElement(By.ClassName("video")), "Video section doesnot have a video");
                TRAssert.IsNotNull(this.careersPage.SliderSection.FindElement(By.ClassName("supsystic-slider")), "Slider not present in the slider section");

                TRAssert.IsNotNull(this.careersPage.Sections[1].FindElement(By.ClassName("section-title")), "2nd Section is a TextSection but doesnot have a title");
                TRAssert.IsNotNull(this.careersPage.Sections[3].FindElement(By.ClassName("section-title")), "4th Section is a TextSection but doesnot have a title");
                TRAssert.IsNotNull(this.careersPage.Sections[4].FindElement(By.ClassName("section-title")), "5th Section is a TextSection but doesnot have a title");
                TRAssert.IsNotNull(this.careersPage.Sections[6].FindElement(By.ClassName("section-title")), "7th Section is a TextSection but doesnot have a title");
                TRAssert.IsNotNull(this.careersPage.Sections[7].FindElement(By.ClassName("section-title")), "8th Section is a TextSection but doesnot have a title");
            }
            catch (Exception ex)
            {
                TRAssert.Fail("Error while Verifying Careers Page Sections.", ex);
            }
        }