Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capture data between [BRACKETS]
Solved: 4 Years, 1 Month, 3 Weeks, 1 Day, 10 Hours, 5 Minutes, 12 Seconds ago
Dear QTP/VBscript experts:
Here is what I am not able to do. Please help me.

1. capture specific data located in a WebElement data string
2. the WebElement has data like this ---> I am in [London] for 1 week
I need to capture London from the data string in the WebElement. Basically I want to capture data between the brackets []
3. Hold this in a variable and compare input parameter with output data which is the data between the brackets.
4. I need to use an IF THEN ELSE IF statement to compare the two variables and show what was captured in the result.

I tried to capture from WebTable but the brackets are a part of the data like [London] so I still cannot compare.
Expected data is London but actual is showing as [London]
I am not sure how to isolate this data from the rest of the data.
Please help.


Messages In This Thread
Capture data between [BRACKETS] - by nayak - 02-18-2012, 02:20 AM
RE: Capture data between [BRACKETS] - by Ankur - 02-18-2012, 01:38 PM
RE: Capture data between [BRACKETS] - by nayak - 02-21-2012, 08:56 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Capture data from pdf rahul1234 1 2,561 02-23-2010, 02:26 PM
Last Post: Sivakumar Munganda
  How to rerieve data from .xls & compare with data in data table test71 6 4,107 03-10-2008, 04:55 PM
Last Post: test71

Forum Jump:

Users browsing this thread: 1 Guest(s)