public WellsFargo LoginOld(string userId, string password) { LoginField.Click(); LoginField.SendKeys(userId); PasswordField.Click(); PasswordField.SendKeys(password); LoginButton.Click(); return(this); }
public void StartWork() { bool flag = true; while (flag) { if (System.DateTime.Now.Hour == 8 && System.DateTime.Now.Minute == 17) { LoginField = driver.FindElement(By.Id("username")); LoginField.Click(); System.Threading.Thread.Sleep(541); LoginField.SendKeys("fpm.lihovec"); System.Threading.Thread.Sleep(432); PassField = driver.FindElement(By.Id("password")); PassField.Click(); PassField.SendKeys("1823402"); System.Threading.Thread.Sleep(734); SearchInput = driver.FindElement(By.Id("loginbtn")); SearchInput.Click(); System.Threading.Thread.Sleep(1231); flag = false; } } }
public LoginPage InputLogin(string login) { LoginField.Click(); LoginField.SendKeys(login); return(this); }
public void InputLogin(string login) { LoginField.Click(); LoginField.SendKeys(login); }