/** * Wait until page title partially matches given string * * @param string $title The expected title substring * @return \RemoteWebElement|array */ public function waitForPartialTitle($title) { return $this->wd->wait()->until(\WebDriverExpectedCondition::titleContains($title)); }