Is there any way to automate the acceptance of a confirm dialog that was created with JavaScript ? I mean, dialogs created in this fashion: `window.confirm('Do you accept?');` 