public function removeAllElements() { $element = $this->getElement('removeAllElements'); $this->scrollWindowToElement($element); $element->click(); $this->getSession()->wait(8000, 'window.$ && $.active == 0'); }