Ejemplo n.º 1
0
 /**
  * Type text in textarea (CodeMirror enabled)
  *
  * @param string $text Text to type
  *
  * @return void
  */
 public function typeInTextArea($text)
 {
     $text = str_replace(
         "(",
         PHPUnit_Extensions_Selenium2TestCase_Keys::SHIFT
         . PHPUnit_Extensions_Selenium2TestCase_Keys::NUMPAD9
         . PHPUnit_Extensions_Selenium2TestCase_Keys::NULL,
         $text
     );
     $this->_selenium->byClassName("CodeMirror-scroll")->click();
     $this->_selenium->keys($text);
 }
Ejemplo n.º 2
0
 /**
  * Wrapper around keys method to not use it on not supported
  * browsers.
  *
  * @param string $text Keys to send
  *
  * @return void
  */
 public function keys($text)
 {
     /**
      * 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('Can not send keys to Safari browser.');
     }
     parent::keys($text);
 }
Ejemplo n.º 3
0
 /**
  * Wrapper around keys method to not use it on not supported
  * browsers.
  *
  * @param string $text Keys to send
  *
  * @return void
  */
 public function keys($text)
 {
     /**
      * 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('Can not send keys to Safari browser.');
     }
     parent::keys($text);
 }