Based on answer from @james
you can execute scripts, but they cannot be fettered. That way, you can simply scroll to a click.
public function testExample()
{
$this->browse(function ($browser) {
$browser
->visit('http://localhost:8000/admin/login')
->driver->executeScript('window.scrollTo(0, 500);');
$browser
->click('label[for=test_1]')
->pause(500)
});
}
source
share