Beispiel #1
0
        public void TestMethod1()
        {
            var driver          = GetChromeDriver();
            var complicatedPage = new ComplicatedPage(driver);

            complicatedPage.Open();
        }
        public void TestMethod1()
        {
            var path            = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var driver          = new ChromeDriver(path);
            var complicatedPage = new ComplicatedPage(driver);

            complicatedPage.Open();
            //   complicatedPage.SearchUsingTopNav("page object");
        }
Beispiel #3
0
        public void TestMethod1()
        {
            var path            = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var driver          = new ChromeDriver(path);
            var complicatedPage = new ComplicatedPage(driver);

            complicatedPage.Open();
            complicatedPage.Search("Automation Testing");
        }
Beispiel #4
0
        public void TestMethodNew()
        {
            new DriverManager().SetUpDriver(new ChromeConfig());
            driver = new ChromeDriver();
            var complicatedPage = new ComplicatedPage(driver);

            complicatedPage.Open();
            complicatedPage.SearchArticles("automation testing");
            Assert.IsTrue(complicatedPage.AreResultsReturned());
        }
Beispiel #5
0
        public void TestMethod1()
        {
            var path   = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var driver = new ChromeDriver(path);

            var complicatedPage = new ComplicatedPage(driver);

            complicatedPage.Open();
            var amazonSearchPage = complicatedPage.SearchUsingAmazon("automation testing");

            Assert.AreEqual("automation testing", amazonSearchPage.ActualSearchResults);
        }