コード例 #1
0
        public void OurWorkPageCanBeNavigatedTo()
        {
            var ourWork = new OurWorkPage(Driver);
            var menu    = new Menu(Driver);

            menu.NavigateToOurWork();
            Assert.IsTrue(ourWork.IsCurrentPage());
        }
コード例 #2
0
        public void task1()
        {
            MainPage main = new MainPage(chromeDriver);

            main.goToPage();
            OurWorkPage page  = main.go_to_workPage();
            string      title = page.getPageTitle();

            if (title.Contains("our-work") || chromeDriver.Url.ToLower().Contains("our-work"))
            {
                Console.WriteLine("Search Passed");
            }
            else
            {
                Console.WriteLine("Search Failed");
            }
        }