PMA_SeleniumBase::typeInTextArea PHP Method

typeInTextArea() public method

Type text in textarea (CodeMirror enabled)
public typeInTextArea ( string $text ) : void
$text string Text to type
return void
    public function typeInTextArea($text)
    {
        /**
         * Firefox needs some escaping of a text, see
         * https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/1723
         */
        if (mb_strtolower($this->getBrowser()) == 'firefox') {
            $text = str_replace("(", PHPUnit_Extensions_Selenium2TestCase_Keys::SHIFT . PHPUnit_Extensions_Selenium2TestCase_Keys::NUMPAD9 . PHPUnit_Extensions_Selenium2TestCase_Keys::NULL, $text);
        }
        $this->byClassName("CodeMirror-scroll")->click();
        $this->keys($text);
    }