Micro Focus QTP (UFT) Forums
Browser busy -Objects not recognized - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Browser busy -Objects not recognized (/Thread-Browser-busy-Objects-not-recognized)



Browser busy -Objects not recognized - Shridevi.Salagare - 03-14-2013

Hi,
I am working with one of the web application and sometimes after opening some pages browser shows busy (small round keep rotating for busy signal) and none of the objects in the page are recognized.

Has anyone faced this problem?

Please urgent help required.


RE: Browser busy -Objects not recognized - pradeep singh - 03-14-2013

Hi,
These round signal is shown because developer written code for this for wait. You can write code for this in a function to wait until this busy signal not gone.


RE: Browser busy -Objects not recognized - Shridevi.Salagare - 03-15-2013

Hi Prashat,
Thank you.But it sometimes need a lot of time.Is there anyway we can stop that wait.

Could you please give pointers for wait code as well.

Appreciate your help.

Thank you.


RE: Browser busy -Objects not recognized - pradeep singh - 03-15-2013

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 .



'*****************************************************************************************************************************
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
'*****************************************************************************************************************************