public void Login(string user, string pasw) { LoginInput.Clear(); PasswordInput.Clear(); LoginInput.SendKeys(user); PasswordInput.SendKeys(pasw); LoginButton.Click(); }
private void ClearBoxOnFocus(object sender, RoutedEventArgs e) { if (ResourceInput.IsFocused) { ResourceInput.Clear(); } else { if (string.IsNullOrEmpty(ResourceInput.Text)) { ResourceInput.Text = "Resourse"; } } if (LoginInput.IsFocused) { LoginInput.Clear(); } else { if (string.IsNullOrEmpty(LoginInput.Text)) { LoginInput.Text = "Login name"; } } if (PasswordInput.IsFocused) { PasswordInput.Clear(); } else { if (string.IsNullOrEmpty(PasswordInput.Text)) { PasswordInput.Text = "Password"; } } }
public void ClearLoginInput() => LoginInput.Clear();
public void ClearAllLoginForField() { CompanyNameInput.Clear(); LoginInput.Clear(); PasswordInput.Clear(); }
public void InputLogin(string login) { LoginInput.Click(); LoginInput.Clear(); LoginInput.SendKeys(login); }
public void ClearLoginInput() { LoginInput.Clear(); }