Nearsoft\SeleniumClient\Alert::sendKeys PHP Метод

sendKeys() публичный Метод

Sends keys to the alert.
public sendKeys ( String $string )
$string String
    public function sendKeys($string)
    {
        if (is_string($string)) {
            $params = array('text' => $string);
            $command = new Commands\Command($this->_driver, 'set_alert_text', $params);
            $command->execute();
        } else {
            throw new \Exception("Value must be a string");
        }
    }