Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expression for window title
#9
Not Solved
Following is an abstract from my script:
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.. Sad

Thanks
Reply


Messages In This Thread
regular expression for window title - by test71 - 02-25-2008, 12:01 PM
RE: regular expression for window title - by test71 - 03-07-2008, 02:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,469 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,339 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,783 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,544 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,106 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 2 Guest(s)