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