Exemple #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");
        }
Exemple #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");
        }
Exemple #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());
        }
Exemple #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);
        }