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?
I ended up finding a way:
Page.javascriptDialogOpening((params) => {
Page.handleJavaScriptDialog({'accept': true});
});