public void LogInRegisteredUser() { LogInBtn.Click(); UserName.Clear(); UserName.SendKeys("*****@*****.**"); Password.Clear(); Password.SendKeys("aneliabogeva"); SbmBtn.Click(); }
public void ClickOnLogIn() { if (LogInBtn.Displayed) { LogInBtn.Click(); Thread.Sleep(5000); } else { throw new Exception("Element is not found or not clickable"); } }
//write a method for this page operation here and call it in the programe public void LoginSteps() { //initialize excel sheet by calling the ExcelLib GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "SignInPage"); SignInBtn.Click(); //wait GlobalDefinitions.wait(5); EenterEmail.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Email")); EnterPwd.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Password")); LogInBtn.Click(); //Wait for the user name is visible GlobalDefinitions.wait(30); //return the ProfilePageObject }