Nearsoft\SeleniumClient\Alert::getText PHP Method

getText() public method

Gets the text of the alert.
public getText ( ) : String
return String
    public function getText()
    {
        $command = new Commands\Command($this->_driver, 'get_alert_text');
        $results = $command->execute();
        return $results['value'];
    }