actor->fillField('#register-form-email', $email); $this->actor->fillField('#register-form-username', $username); if ($password !== null) { $this->actor->fillField('#register-form-password', $password); } $this->actor->click('Sign up'); } }