public void Test2() { IWebDriver driver = new FirefoxDriver(); SalesGraphPage page = SalesGraphPage.Load(driver); string total = page.TotalSales; StringAssert.StartsWith("$", total); }
public void Test3() { using (IWebDriver driver = new RemoteWebDriver ( new Uri("http://selenium-hub1.testnet.red-gate.com:4444/wd/hub"), DesiredCapabilities.Firefox() )) { SalesGraphPage page = SalesGraphPage.Load(driver); string total = page.TotalSales; StringAssert.StartsWith("$", total); } }