Forum Discussion
I tried this.
I created the object check point. for that overlying ie page. and set auto wait time for that object check point. It worked.
My object of that page was Aliases.iexplore2.pageProgressReportMultipleStuden
tried to write a routine to wait for this object and log the execution time when the page appears.
sub GetObjectTime
Set StopWatchObj = HISUtils.StopWatchd
dim MyCell
GetObjectTime StopWatchObj = .StopWatchd MyCell
dim MyCellContent
MyResult = CBool(False)
StopWatchObj.Start
Set MyCell = Aliases.iexplore2.pageProgressReportMultipleStuden
Set MyResult = MyCell.WaitProperty("URL","http://qa2008/advantageV260/SY/ReportViewer.aspx", 480000)
if MyResult = True then
StopWatchObj.Stop
Log.Message(" Crystal Blank Report Page appears. Execution time: " & StopWatchObj.ToString & ". Baseline Date: 05-12-2010, Baseline Execution time: 00:00:00.000")
Else
Log.Message("Crystal Blank Report not Loaded.")
end if
end sub
I have three properties i can check for this object Name, URL. It says waiting for that page But looks like it is not waiting for the time i have specified. it is comming out and going to else loop.
I have three properties i can check for this object Name, URL. It says waiting for that page But looks like it is not waiting for the time i have specified. it is comming out and going to else loop.Please tell me how to use this correctly.