/** * Add the current page of results to the cart. * * @param Element $page Page element * @param Element $updateCart Add to cart button * * @return void */ protected function addCurrentPageToCart(Element $page, Element $updateCart) { $selectAll = $page->find('css', '#addFormCheckboxSelectAll'); $selectAll->check(); $updateCart->click(); }