I am creating a keyword test, in which i am selecting nodes.
when selecting 'some' nodes a dialog is displayed, selecting other nodes does not display a dialog.
I believe i need an 'If .. Else' statement saying:
If dialog X exists Then
continue with the rest of the cript
Could you please tell me how to go about this. I have read some of your replies to other questions and they are very helpful, hope you can help. I have been trying this for a cuple of days now! :-(
I am using TC 7.
I posted the exact steps to follow for this under your original post. I did exactly what you were doing making an unexpected window disappear in the sample orders app. If you would like i'd be happy to attach a pic of how to do it or screenshots if the steps do not work.
The problem is that the IF..Else statement in a keword test does not work as it should do.
the concept of my test is that when selecting a node, IF dialog x appears, then close it. Else continue with the rest of the script.
THe thing is even when the dialog is NOT displayed, the code still runs in the IF statements and looks to close the dialog. (Its like the Exists is true when is should be false)
Also, the Else throws an exception.