public function cancelPopup()
    {
        if ($this->isPhantom()) {
            throw new ModuleException($this, 'PhantomJS does not support working with popups');
        }
        $this->webDriver->switchTo()->alert()->dismiss();
    }
public function cancelPopup()
    {
        if ($this->isPhantom()) {
            throw new ModuleException($this, 'PhantomJS does not support working with popups');
        }
        $this->webDriver->switchTo()->alert()->dismiss();
    }
public function cancelPopup ( ) { if ( $ this -> isPhantom ( ) ) { throw new ModuleException ( $ this , 'PhantomJS does not support working with popups' ) ; } $ this -> webDriver -> switchTo ( ) -> alert ( ) -> dismiss ( ) ; }
Dismisses the active JavaScript popup, as created by `window.alert`, `window.confirm`, or `window.prompt`.
Dismisses the active JavaScript popup as created by window . alert window . confirm or window . prompt .