xjfnet

Results 7 comments of xjfnet

there is a Login button on the page, click the Login button, the form post to the page itself, and then popup up a alert dialog to show error message

no effect, even enable "Debug mode", and add "Handle Dialog" before "New Tab" and "Click Element"

can we inject script and replace alert at dom loaded?

but your code above seems run just once, it need to auto run when page reload after click element

no effect, it seems that the `alert()` run before the code above and i found these of `Chrome DevTools Protocol`, [Page.javascriptDialogClosed](https://chromedevtools.github.io/devtools-protocol/tot/Page/#event-javascriptDialogClosed) [Page.javascriptDialogOpening](https://chromedevtools.github.io/devtools-protocol/tot/Page/#event-javascriptDialogOpening) [Page.handleJavaScriptDialog](https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-handleJavaScriptDialog)

[addScriptToEvaluateOnNewDocument](https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-addScriptToEvaluateOnNewDocument) can do replace `alert`