/** * Wrapper around alertText method to not use it on not supported * browsers. * * @return void */ public function alertText() { /** * Not supported in Safari Webdriver, see * http://code.google.com/p/selenium/issues/detail?id=4136 */ if ($GLOBALS['PMA_String']->strtolower($this->getBrowser()) == 'safari') { $this->markTestSkipped('Alerts not supported on Safari browser.'); } return parent::alertText(); }
/** * Wrapper around alertText method to not use it on not supported * browsers. * * @return mixed */ public function alertText() { /** * Not supported in Safari Webdriver, see * https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/4136 */ if (mb_strtolower($this->getBrowser()) == 'safari') { $this->markTestSkipped('Alerts not supported on Safari browser.'); } return parent::alertText(); }