Laravel Dusk Error on Type

Posted 3 weeks ago by mitechnologies

Hi.. I have been checking the new version of laravel 5.8 with:

facebook/webdriver 1.7 Chromedrive 75 Laravel Dusk 5.1

This is my test

public function user_can_sign_in()
{
    $this->browse(function (Browser $browser) {
        $browser->visit('/login')
          ->type('input[name=email]','[email protected]')
         // ->type('input[name=password]','pas')
        ->assertPathIs('/login');
    });
}

If I type more than 13 characters in the field email,

i.e. ( ->type('input[name=email]','[email protected]'),

an exception is generated

--Facebook\WebDriver\Exception\WebDriverCurlException --Operation timed out after 30001 milliseconds with 0 bytes received

less than 13 characters works fine

Also if I uncomment the second "type" (->type('input[name=password]]')), and excecute the test again it falis with the same exception

-- Facebook\WebDriver\Exception\WebDriverCurlException -- Operation timed out after 30001 milliseconds with 0 bytes received

Any suggestion?

Please sign in or create an account to participate in this conversation.