We are automating a healthcare application.
After entering all the details of a person and clicking on 'Register' I get a popup (Request is being processed...Please wait) then after a few seconds the popup disappears and the registration is successful.
But, SilkTest closes that popup and also the main window of the application (iam using Default Base State)
My script fails after the above happens.
How can I avoid the above situation.
How can I program SilkTest to wait for that popup to disappear without closing it as well as the application.
let us assume the following is the declaration for the popup
[ QUOTE ]
[+] window DialogBox Popup
[ ] tag "Processing Dialog"
[-] HtmlText RequestIsBeingProcessed
[ ] tag "Request is being processed...Please wait"
[/ QUOTE ]
then add the following code in ur script after clicking on "Register" button.
<font class="small">Code:</font><hr /><pre>
[ ] INTEGER i
[-] while !(Popup.RequestIsBeingProcessed.Exists())
[ ] sleep(.1)
[ ] i = i+1
[-] if i>100
[ ] Print("popup did not open")
[ ] break