Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Progress Bar of Internet Explorer
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,

Does anyone know if there's a way to work with the progress bar of IE??

I want to wait till it has been completed so that I can proceed.
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,
Instead you can use page's status property is complete or not. Need to google for exact property name used in QTP Wink
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
You can spy on the status bar of your IE, it should be showing something like Browser("xyz")>Winstatusbar("abc") in spy tree and on highlighting on winstatusbar, you will be seeing properties for it. I observed 'regexpwndtitle' prop is having value 'done'. Try with GetROProperty("regexpwndtitle") = "done".
Reply
#4
Solved: 10 Years, 8 Months, 3 Weeks ago
Hello there!

Use ReadyState Property.


I hope this helps.
Use ReadyState Property.

Thank you so Much,
UFTEnthusiast
Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
Rajendraprasad,

How does waiting for "Browser(<browser-name>").object.ReadyState = 4" differ from just calling "Browser(<browser-name>).Sync"?

I have always used Browser(<browser-name>).Sync. That works under most conditions. Sometimes it does not wait until the browser has finished drawing the page (maybe due to javascript or other dynamic data).

I have tried both ways with problem pages and saw no difference. I suspect that Browser.Sync may be nothing more than waiting on ReadyState = 4.

How do you wait for ReadyState = 4? without looping every x seconds until some y seconds has passed? QTP help or WaitProperty says, "you can instruct QuickTest to wait for a particular string to appear in a static text control". But, ReadyState is not a "static text control".

I did find an example that sounds like what you're talking about under help for WaitProperty:

Code:
returnStatus=Browser("mybrowser").Page("mypage").Link("mylink").WaitProperty("attribute/readyState", "complete", 5000)

When I execute the above code against my link, which is completely drawn and ready, I always get a returnStatus of FALSE.
I also tried replacing "complete" with "4", but get the same result.

Can you explain further please, Rajendraprasad?

Tim
Reply
#6
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi tdevick,

I do agree with you but the only with is the issue with QTP sync is commonly noticed. In order to handle this situation, I always use my own function rather than depending on the QTP method.
here is the loc:
Code:
Browser("TestBrowser").Refresh
StartTime = Now()
'Used DateDiff  method as Timeout.
Do until  Browser("TestBrowser").Object.ReadyState = 4 or DateDiff("s",Now(),StartTime)>20
    wait 1
Loop
If Browser("TestBrowser").Object.ReadyState = 4 Then
    msgbox "Done"
    Else
    msgbox "Browser was not loaded with in 20 seconds."
End If

Let me know if you need any info or if it doesn't work.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  IE 11 Download Notification bar identification using UFT 12.52 Sumana 1 3,657 03-09-2016, 09:43 AM
Last Post: supputuri
  How to get URL/Location from Address bar of any open window in Windows 7 kalpmist 0 4,084 05-11-2015, 07:23 PM
Last Post: kalpmist
  QTP 11 is not working for Internet Explorer 10 Niraj 5 9,757 08-14-2013, 01:34 PM
Last Post: Niraj
  Explorer Crash - when UFT 11.5 is open sriramb 2 3,642 07-08-2013, 05:18 PM
Last Post: Ankur
  move up or down scroll bar of window in unix environment kkk 1 3,175 10-08-2011, 10:10 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)