guy->fillField('input[name="LoginForm[username]"]', $username); $this->guy->fillField('input[name="LoginForm[password]"]', $password); $this->guy->click('#login-form input[type=submit]'); } }