Exemplo n.º 1
0
 public void SetUp()
 {
     driver    = new ChromeDriver();
     loginPage = new LoginPage(driver);
     driver.Manage().Window.Maximize();
     driver.Navigate().GoToUrl("http://a.testaddressbook.com/");
     loginPage.NavigateToLoginPage();
     Thread.Sleep(1000);
 }
        public void Setup()
        {
            driver = new ChromeDriver();
            var loginPage = new LoginPage(driver);

            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl("http://a.testaddressbook.com/");
            loginPage.NavigateToLoginPage();
            Thread.Sleep(1000);
            loginPage.LoginApplication("*****@*****.**", "test");

            var homePage = new HomePage(driver);

            Thread.Sleep(1000);
            var addressesPage = homePage.NavigateToAddressesPage();

            Thread.Sleep(1000);
            addAddressPage = addressesPage.NavigateToAddAddressPage();
            Thread.Sleep(1000);
        }