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