Esempio n. 1
0
        public void TranslatingPage()
        {
            String   result_PageTitle;
            String   expected_title = "pl";
            MainPage home_page      = new MainPage(driver);

            home_page.goToPage();

            CareersPage final_page = home_page.test_translate();

            // Ensure that the page load is complete
            final_page.load_complete();

            //As the web page is loaded, we just check if the page title matches or not.
            result_PageTitle = final_page.getPageTitle();

            Console.WriteLine(result_PageTitle.ToLower());
            Console.WriteLine(driver.Url.ToLower());

            if (driver.Url.ToLower().Contains(expected_title))
            {
                Console.WriteLine("Translate Test Passed");
            }
            else
            {
                Console.WriteLine("Translate Test Failed");
            }
        }
Esempio n. 2
0
        public void careersFilterSkillsRemote()
        {
            String   result_PageTitle;
            String   expected_title   = "data";
            String   expected_title_2 = "remote";
            MainPage home_page        = new MainPage(driver);

            home_page.goToPage();

            CareersPage final_page = home_page.goto_careers();

            final_page.test_searchSkillsRemote();

            //SearchPage final_page = careers_page.test_searchSkills();

            // Ensure that the page load is complete
            final_page.load_complete();

            //As the web page is loaded, we just check if the page title matches or not.
            result_PageTitle = final_page.getPageTitle();

            if ((result_PageTitle.ToLower().Contains(expected_title) && result_PageTitle.ToLower().Contains(expected_title_2)) || (driver.Url.ToLower().Contains(expected_title) && driver.Url.ToLower().Contains(expected_title_2)))
            {
                Console.WriteLine("Search Test Passed");
            }
            else
            {
                Console.WriteLine("Search Test Failed");
            }
        }
Esempio n. 3
0
        public void KeywordJobsSearch()
        {
            String expected_keyword = "lviv";
            String result_PageTitle;
            String search_string = "lviv";

            MainPage home_page = new MainPage(driver);

            home_page.goToPage();
            //home_page.test_search(search_string);

            // SearchPage search_page = new SearchPage(driver); ;
            CareersPage careers_page = home_page.goto_careers();

            careers_page.load_complete();

            SearchPage final_page = careers_page.test_search(search_string);

            // Ensure that the page load is complete
            final_page.load_complete();

            //As the web page is loaded, we just check if the page title matches or not.
            result_PageTitle = final_page.getPageTitle();

            Console.WriteLine(result_PageTitle.ToLower());
            Console.WriteLine(driver.Url.ToLower());

            if (result_PageTitle.Contains(expected_keyword) || driver.Url.ToLower().Contains(expected_keyword))
            {
                Console.WriteLine("Job Search Passed");
            }
            else
            {
                Console.WriteLine("Job Search Failed");
            }
        }