Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression for a List Value
#1
Solved: 10 Years, 9 Months, 1 Week ago
I am creating a QTP test script on a .Net application.

When recording similiar to the below is recorded:

Code:
SwfWindow("My Application".SwfWindow("Work Queue").SwfTreeView("WorkType").Select "Tasks(8);My Tasks(3)"

This window is a work queue, which means the "Tasks(8);My Tasks(3)" values in brackets could change from 8/3 to any number depending upon the work items in the queue.

I am unable to open the list to do a count of rows, since I first need to select the required value

Is their anyway to may the number in the brackets as a regular expression? - even though this is the actual data, rather than the object.

The only other solution I can come up with is to do a loop and search if each value exists, but this seems very crude, so would prefer a better solution if it's available.

Thanks in advance for any help in coming up with a solution for this.
Reply


Messages In This Thread
Regular Expression for a List Value - by Reaper - 10-12-2010, 03:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,272 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,217 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,632 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,416 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,036 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)