Level 8
Please try this code
$browser->visit('/https://laravel-student.test/forgot-password')->type('#email_input', '[email protected]')->click("#send_email");
public function forgotPasswordTest(): void
{
$this->browse(function (Browser $browser) {
$browser->visit('/https://laravel-student.test/forgot-password')->type('@email_input', '[email protected]')->click("@send_email > button");
});
}
its just a simple test to test the forgotten password form but i get the error no such element: Unable to locate element: {"method":"css selector","selector":"body [dusk="email_input"]"} even though the test input field for the email in the form has dusk="email_input" on it so idk why its not finding it i shouldnt need to put the full element selector path to it right?
Please or to participate in this conversation.