コード例 #1
0
        public void TestInitialize()
        {
            driver = new ChromeDriver();
            wait   = new WebDriverWait(driver, TimeSpan.FromSeconds(20));
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl("http://automationpractice.com/");

            wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector(".login")));
            driver.FindElement(By.CssSelector(".login")).Click();

            loginPage    = new MS_LoginPage(driver);
            registerPage = new MS_RegisterAccountPage(driver);
        }
コード例 #2
0
        public void TestInitialize()
        {
            // Access site
            driver = new ChromeDriver();
            wait   = new WebDriverWait(driver, TimeSpan.FromSeconds(20));
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl("http://automationpractice.com/");
            wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector(".login")));
            driver.FindElement(By.CssSelector(".login")).Click();

            // Login
            var loginPage = new MS_LoginPage(driver);

            loginBO = new LoginBO();
            loginPage.LoginApplication(loginBO.email, loginBO.password);
        }