I want to check a condition weather dialog box exist or not.
If (the dialog box exists) then
i need to click on yes button
plz provide code to do this
3 Answers, 1 is accepted
answered on 30 Apr 2013, 09:51 AM
Unfortunately this cannot be done with a logical If/Else statement. The problem is that the test displays the dialog before it enters the If/Else statement. The Dialog Handler isn't created until the branch is made and since the dialog is displayed before the dialog handler is created, it will never know that the dialog exists. To overcome this, please see this article on "Conditional Dialog Handling" and let me know if you need further assistance on this.