public string SetLoginData(string userName, string password)
 {
     UserID.Clear();
     PassWord.Clear();
     UserID.SendKeys(userName);
     PassWord.SendKeys(password);
     return(ClickOnLogin());
 }
Пример #2
0
        /// <summary>
        /// Login to application
        /// </summary>
        /// <param name="userName">Login user name</param>
        /// <param name="password">Login password</param>
        /// <returns></returns>
        public HomePage Login(string userName, string password)
        {
            UserID.Clear();
            UserID.SendKeys(userName);

            Password.Clear();
            Password.SendKeys(password);

            SubmitButton.Click();

            return(new HomePage());
        }