/*Actions*/ //Login Method public void logIn(String userName, String password) { //conditionals should be added here logInButtonTitle.Click(); UserField.SendKeys(userName); ContinueButton.Click(); try { PasswordField.SendKeys(password); } catch (ElementNotInteractableException) { Console.WriteLine("UserField Element not Interactable"); } try { LoginButton.Click(); } catch (NoSuchElementException) { Console.WriteLine("No Element is displayed"); } }
private void SetUserName(string userame) { UserField.SendKeys(userame); }