예제 #1
0
        public void Test2()
        {
            IWebDriver     driver = new FirefoxDriver();
            SalesGraphPage page   = SalesGraphPage.Load(driver);
            string         total  = page.TotalSales;

            StringAssert.StartsWith("$", total);
        }
예제 #2
0
 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);
     }
 }