Changed window's on_event method to newer version page.window.on_event (Deprecated in v0.23.0 and will be removed in v0.26.0. Use Page.window.on_event() instead.)
Changed window_event function to open control instead of setting it's open property to True and updating it. (page.open(confirm_dialog))
Changed no_click function to close control instead of setting it's property to False and updating it. (page.close(confirm_dialog))
page.window.on_event
(Deprecated in v0.23.0 and will be removed in v0.26.0. Use Page.window.on_event() instead.)window_event
function to open control instead of setting it's open property to True and updating it. (page.open(confirm_dialog)
)no_click
function to close control instead of setting it's property to False and updating it. (page.close(confirm_dialog)
)