How do i use cmpContains propery check in the script.
I want to check the caption of the report window opened contains "DisplaySSRSReport" by using cmp Contains property.
I am getting error in the statemnet Set MyCellContent = MyCell.WndCaption saying needs object string("DisplaySSRSReport")
sub SSRSReportTime
Set StopWatchObj =
HISUtils.StopWatch
dim MyCell
dim MyCellContent
StopWatchObj.Start
Set MyCell =
Aliases.AcroRd32.wndAcrobatSDIWindow
Set MyCellContent = MyCell.WndCaption
if MyCellContent cmpContains "DisplaySSRSReport" then
StopWatchObj.Stop
Log.Message(" SSRS Report appears for Galen School Of Nursing. Execution time: " & StopWatchObj.ToString & ". Baseline Date: 06-29-2010, Baseline Execution time: 00:00:8.406")
Else
Log.Message("SSRS Report not Loaded.")
end if
end
sub
Can anybody suggest how do i use it.