Ejemplo n.º 1
0
  public void login(final User user, final boolean rememberMe) {
    if (rememberMe) {
      this.getSelenium().check(By.id("rememberme"));
    }

    this.getSelenium().type(By.id("user_login"), user.getUsername());
    this.getSelenium().type(By.id("user_pass"), user.getPassword());
    this.submit();
  }
Ejemplo n.º 2
0
 protected void submit() {
   this.getSelenium().click(By.id("wp-submit"));
 }