public/phpmyadmin/test/selenium/TestBase.php
/**
     * Type text in textarea (CodeMirror enabled)
     *
     * @param string $text  Text to type
     * @param int    $index Index of CodeMirror instance to write to
     *
     * @return void
     */
Type text in textarea (CodeMirror enabled)
@param string $text  Text to type
@param int    $index Index of CodeMirror instance to write to

@return void
Type text in textarea ( CodeMirror enabled ) @param string $text Text to type @param int $index Index of CodeMirror instance to write to @return void
public function typeInTextArea($text, $index=0)
    {
        $this->waitForElement('byCssSelector', 'div.cm-s-default');
        $this->execute(
            array(
                'script' => "$('.cm-s-default')[$index].CodeMirror.setValue('" . $text . "');",
                'args' => array()
            )
        );
    }
public function typeInTextArea ( $ text , $ index = 0 ) { $ this -> waitForElement ( 'byCssSelector' , 'div.cm-s-default' ) ; $ this -> execute ( array ( 'script' => " $('.cm-s-default')[ $ index ].CodeMirror.setValue(' " . $ text . " '); " , 'args' => array ( ) ) ) ; }
Type text in textarea (CodeMirror enabled)
 @param string $text  Text to type
 @param int    $index Index of CodeMirror instance to write to
Type text in textarea ( CodeMirror enabled ) @param string $text Text to type @param int $index Index of CodeMirror instance to write to