MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - [solved]How do i confirm/cancel JavaScript pop-up/alert ?

WebPagetest Forums

Full Version: [solved]How do i confirm/cancel JavaScript pop-up/alert ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello i tried to find this answer in the documentation but couldn't. I'm doing a script which navigates to a certain point and opens a JS pop-up/alert window which i want to confirm but couldn't find the command i must execute in order to do so. Any ideas ?

p.s. Hello guys i found a solution for my question so i will share it with you if anyone ends up having the same problem:
from the browser inspector i found that the script (which fires the alert) has a DOM property which has "_ConfirmOnFormSubmit" with value set to false just attached the following step to my script
"exec ctl00_cph_MainContent_DocumentView1_ib_Delete.ConfirmButtonBehavior._ConfirmOnFo​rmSubmit=true;" which makes this true and here you go there is no confirmation window (submits the form automatically)

Keep up the good work WPT is awesome !
Great. Glad you found a solution. WPT doesn't let you interact with pop-up dialogs and it dismisses all of them automatically so there isn't any generic way to handle it.
Reference URL's