Description
I was working with this file and i tried to run it in my system, when ever the website load, the dialog box doesn't appears.
but it works after the second execution.
Let me make it simple for you to understand
let me start with:
i run the code and it opens in the browser but the dialog box doesn't appears, now i don't close the tab where it is opened and now i stop the code and run it again, this time too it opens in another tab, this time too dialog box doesn't appears on the second tab but it opens in the previously opened tab.
the tab on first image was opened during second execution where page.dialog doesn't opens
the tab on the second image was opened during first execution where initially page.dialog didn't open but after second execution (without closing the tab ) page.dialog opened.