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