Integrated
Integrated copied to clipboard
API issue: click() behavior is different when using Selenium extension
Hi, let me show you two examples:
- Laravel-way:
$this->visit('/')
->click('Login')
->seePageIs('/login');
- Selenium:
$this->visit('/')
->clickCss('[href="http://mappanel.dev/login"]') // 1. Can't use just the ::click('link text') here...
->updateCurrentUrl() // Have to add this line to test "seePageIs()" properly
->seePageIs('/login');
Is it expected behavior that Selenium requires completely