public function clickNextButton($step) { $this->driver->findElement(By::linkText('Next'))->click(); $this->waitForStepNumber($step); }