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(); }
protected void submit() { this.getSelenium().click(By.id("wp-submit")); }