Modelizer / Laravel-Selenium

Selenium Testing for Laravel 5
MIT License
108 stars 33 forks source link

use of press on a form submit button fails #55

Closed ashikdnd closed 6 years ago

ashikdnd commented 6 years ago

I'm trying to submit a form but the test fails

$this->visit('/')
       ->fill('john', 'username')
       ->fill('doe', 'password')
       ->press('Login');

where Login is the value of Submit button

ashikdnd commented 6 years ago

@Modelizer kindly solve this for me

Modelizer commented 6 years ago

Are you using Login as text inside the button? If it is anchor tag then please use click method.