I have a problem with one of my tests using codeception when I try to click a link, the window scrolls, to where the browser thinks it's supposed to go, however, my site has a navigation bar attached to the bottom of the window so when the browser stops scrolling, the bottom nav is covering the link.
Because of that, the test fails. Would anyone know how to configure it to scroll a little farther? Using Codeception 1.8.5.
Thanks
Update: Now you can also use the scrollTo()
method, with the same argument you're passing into click()
:
$I->scrollTo($button);
$I->click($button);