03-15-2013, 05:44 PM
(This post was last modified: 03-15-2013, 05:46 PM by pradeep singh.)
Hi Shridevi,
You can create similar code as given below. It perfectly works for me. It wait for approx. 60 seconds to close itself othewise close it by clicking on 'X' button at extreme right top . Might be it help you .
'*****************************************************************************************************************************
'*****************************************************************************************************************************
You can create similar code as given below. It perfectly works for me. It wait for approx. 60 seconds to close itself othewise close it by clicking on 'X' button at extreme right top . Might be it help you .
'*****************************************************************************************************************************
Code:
Function loading_wait()
wait(1)
Browser("").Page("title:=.*").Sync
Browser("").Sync
counter=0
While Browser("").Page("for_loading_icon").WebElement("Loading....").Exist(0) And counter < 60 ' Here wait for maximum 60 seconds
wait(1)
counter=counter+1
Wend
If counter => 60 Then
message=message & " Loading icon remains for long time, greater then 60 seconds"
Browser("").Page("for_loading_icon").Image("Close Progress Bar").Click
wait(1)
Browser("").Sync
End If
End Function