03-07-2008, 02:32 PM
Following is an abstract from my script:
In the last 2 statements I want to use reg exp for avenue (Original Stream).This will be the window title displayed for the video opened.Now in this,only 'avenue' will change for every video,(Original Stream) text will remain as it is.
I have created a data table with colmun name 'video_clip_name' in which I am giving the video clip names,so that QTP can open the videos one by one.
I have tried Window("abcd").Window(".*(Original Stream)")
But this doesn't work.Also tried to use reg exp in OR itself, with .*,but it gives error 'Cannot identify the object "avenue (Original Stream)" (of class window).Verify that this object's properties match an object currently displayed in your application.'
I am not getting what's wrong..
Thanks
Code:
Window("Video State").WinMenu("Menu").Select "File;Open Clip... Ctrl+O"
Window("Video State").Dialog("Open Video Clip").WinComboBox("Look in:").Select "Desktop"
Window("Video State").Dialog("Open Video Clip").WinListView("Look in:").Select "Video_clips"
Window("Video State").Dialog("Open Video Clip").WinButton("Open").Click
Window("Video State").Dialog("Open Video Clip").WinListView("Look in:").Select "movingcamVS"
Window("Video State").Dialog("Open Video Clip").WinButton("Open").Click
Window("Video State").Dialog("Open Video Clip").WinListView("Look in:").Select DataTable("Video_clip_name", dtGlobalSheet)
Window("Video State").Dialog("Open Video Clip").WinButton("Open").Click
Window("Video State").WinMenu("Menu").Select "Video;Repeat For Ever"
Window("Video State").Window("avenue (Original Stream)").Activate
Window("Video State").Window("avenue (Original Stream)").Close
In the last 2 statements I want to use reg exp for avenue (Original Stream).This will be the window title displayed for the video opened.Now in this,only 'avenue' will change for every video,(Original Stream) text will remain as it is.
I have created a data table with colmun name 'video_clip_name' in which I am giving the video clip names,so that QTP can open the videos one by one.
I have tried Window("abcd").Window(".*(Original Stream)")
But this doesn't work.Also tried to use reg exp in OR itself, with .*,but it gives error 'Cannot identify the object "avenue (Original Stream)" (of class window).Verify that this object's properties match an object currently displayed in your application.'
I am not getting what's wrong..
Thanks