_generated\AcceptanceTesterActions::scrollTo PHP Method

scrollTo() public method

Move to the middle of the given element matched by the given locator. Extra shift, calculated from the top-left corner of the element, can be set by passing $offsetX and $offsetY parameters. php scrollTo(['css' => '.checkout'], 20, 50); ?>
See also: Codeception\Module\WebDriver::scrollTo()
public scrollTo ( $selector, integer $offsetX = null, integer $offsetY = null )
$selector
$offsetX integer
$offsetY integer
    public function scrollTo($selector, $offsetX = null, $offsetY = null)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('scrollTo', func_get_args()));
    }
AcceptanceTesterActions