Exemplo n.º 1
0
        public void Exercise_12_Test_Example2()
        {
            // TODO: Add your test code here
            var internetPage = new InternetPage(this.DriverContext);

            internetPage.OpenHomePage();
            internetPage.GoToPage("dynamic_loading");
            var example2 = new DynamicLoadingPage(this.DriverContext);

            example2.ClickOnExampleLink("2");
            var start = new DynamicLoadingPage(this.DriverContext);

            start.ClickOnStartButtonExample2("start");
            var finish = new DynamicLoadingPage(this.DriverContext).GetText("finish");

            Assert.AreEqual("Hello World!", finish);
        }
 public new void SetUp()
 {
     DynamicLoading = new DynamicLoadingPage(Driver);
 }
 public new void SetUp()
 {
     var Service = FirefoxDriverService.CreateDefaultService(VendorDirectory);
     Driver = new FirefoxDriver(Service);
     DynamicLoading = new DynamicLoadingPage(Driver);
 }
Exemplo n.º 4
0
 public void Init()
 {
     _driver             = new ChromeDriver(@"../../../");
     _dynamicLoadingPage = new DynamicLoadingPage(_driver);
     _driver.Url         = Properties.Resources.WebUrl;
 }