Laravel - Browser Tests - Scrolling An Element Into View

Sometimes you may not be able to click on an element because it is outside of the viewable area of the browser. The scrollIntoView method will scroll the browser window until the element at the given selector is within the view:

    
    $browser->scrollIntoView('.selector')
            ->click('.selector');