Beispiel #1
0
        public void LoginWithDefaultUser(BaseTestDriver driver, IWebDriver browser, string name = "Ninja", string pass = "******")
        {
            PageFactory.InitElements(browser, this);

            this.Username.Clear();
            this.Username.SendKeys(name);

            this.Password.Clear();
            this.Password.SendKeys(pass);

            this.LoginButton.Click();
            driver.Wait();
        }
 public void Login(BaseTestDriver driver, IWebDriver browser)
 {
     PageFactory.InitElements(browser, this);
     this.LoginButton.Click();
     driver.Wait();
 }