Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Choice in a WebList
#1
Solved: 11 Years, 4 Months ago
Hello,

I am currently beginning to use QTP and am automating simple tests.
I have to do a test on a web application, where there is a WebList with several hundreds possible choices. All of them is finishing by "- Active" or "- Inactive". The test have to choose one of these choices finishing by "- Active", no matter which one exactly. The problem is that of course the texts are changing frequently from active to inactive and vice-versa, so we cannot select one precisely and hard-code it.

For the moment I though about two possible solutions (but do not know how to implement them):

1- Use a regular expression in the .Select of the WebList. I tried by using the object repository but did not find where I can do that, so I am beginning to think it is not possible.

2- Extract all the data of the WebList in a VB structure and then test each entry, until finding one which is OK and that I will use in the .Select. I do not know if it is possible and how to do it.

Can you tell me if one of these solutions is possible, and how? Or maybe tell me another better solution!

I hope I have been clear enough,

Still
Reply


Messages In This Thread
Choice in a WebList - by Still - 11-28-2008, 10:09 PM
RE: Choice in a WebList - by Ankur - 11-28-2008, 11:29 PM
RE: Choice in a WebList - by chetan-24 - 11-29-2008, 01:54 PM
RE: Choice in a WebList - by Still - 12-02-2008, 06:31 PM
RE: Choice in a WebList - by Ankur - 12-02-2008, 07:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  WEBLIST shayk1985 3 5,618 05-17-2018, 11:49 AM
Last Post: Ankur
  Weblist selection diya 11 21,375 06-16-2015, 08:27 PM
Last Post: rajpradeep32
  Comparing webtable data with weblist and webelements in other webpage arnav 1 5,816 04-18-2014, 10:01 PM
Last Post: Parke
  Unable to select value on weblist ShekharUlli 3 5,678 09-26-2013, 08:58 AM
Last Post: basanth27
  Not able to select weblist value automation2012 2 3,500 09-20-2013, 07:19 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)