protected function prepareTestSession() { $this->job_id = parent::prepareTestSession(); if ($this->build) { SauceTestCommon::ReportBuild($this->job_id, $this->build); } $this->postSessionSetUp(); return $this->job_id; }
/** * @return string */ protected function prepareTestSession() { $result = parent::prepareTestSession(); // Set any cookies required by local installation // Note: considered doing this in setUp(), but the Selenium session wasn't yet initialized. if (property_exists($this->settings, 'cookies')) { // We don't really care about this page, but it seems we need // to open a page before setting a cookie. $this->open($this->sboxPath); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->setCookies($this->settings->cookies); } return $result; }