Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Progress Bar of Internet Explorer
#5
Solved: 11 Years, 3 Months, 2 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


Messages In This Thread
Progress Bar of Internet Explorer - by rishi0810 - 05-11-2011, 11:52 AM
RE: Progress Bar of Internet Explorer - by manabh - 05-11-2011, 12:17 PM
RE: Progress Bar of Internet Explorer - by tdevick - 05-12-2011, 10:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  IE 11 Download Notification bar identification using UFT 12.52 Sumana 1 3,773 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,312 05-11-2015, 07:23 PM
Last Post: kalpmist
  QTP 11 is not working for Internet Explorer 10 Niraj 5 10,126 08-14-2013, 01:34 PM
Last Post: Niraj
  Explorer Crash - when UFT 11.5 is open sriramb 2 3,770 07-08-2013, 05:18 PM
Last Post: Ankur
  move up or down scroll bar of window in unix environment kkk 1 3,348 10-08-2011, 10:10 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)