public function acceptAlert()
    {
        try {
            $this->session->accept_alert();
        } catch (\WebDriver\Exception\NoAlertOpenError $e) {
            throw new PHPUnitException(
                "Well, tried to accept the alert, but there wasn't one. Dangit."
            );
        }

        return $this;
    }
public function acceptAlert()
    {
        try {
            $this->session->accept_alert();
        } catch (\WebDriver\Exception\NoAlertOpenError $e) {
            throw new PHPUnitException(
                "Well, tried to accept the alert, but there wasn't one. Dangit."
            );
        }

        return $this;
    }
public function acceptAlert ( ) { try { $ this -> session -> accept_alert ( ) ; } catch ( \ WebDriver \ Exception \ NoAlertOpenError $ e ) { throw new PHPUnitException ( "Well, tried to accept the alert, but there wasn't one. Dangit." ) ; } return $ this ; }
Accept an alert.

@return static
Accept an alert .