0
Good morning guys, has anyone ever had experience with Laravel Dusk who can help me? I can not do the Authentication by Browser to be able to access the screens, in my case I have different Wards, but according to the documentation what I am doing should work.. Follow the Test Code below:
public Function testLogin() { $manager = Factory(Manager::class)->create();
$this->browse(function (Browser $browser) use ($manager) {
$browser->visit($this->getUrl().'manager/login')
->type('email', $manager->email)
->type('password', '123123')
->press('Entrar')
->assertPathIs('/manager/home')
->assertSee('Inicio');
});
}
The error is as follows:
There was 1 error:
1) Tests Browser Managertest::testLogin Facebook Webdriver Exception Nosuchelementexception: no such element: Unable to locate element: {"method":"css selector","selector":"body textarea[name='email']"} (Session info: headless Chrome=66.0.3359.181) (Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),Platform=Windows NT 10.0.17134 x86_64) (edited)