Search code examples
google-chrome-devtoolschrome-remote-debugging

Chrome DevTools - how do you close an alert box?


I am using Chrome DevToools through the Chrome remote interface.

One thing I don't see a way to do here is to close an alert box. Is this possible?


Solution

  • I ended up finding a way:

    Page.javascriptDialogOpening((params) => {
      Page.handleJavaScriptDialog({'accept': true});
    });