| || |
How to select a WebList item using DP?
How do I select a specific item from a WebList using DP? The following line does not seem to work:
Browser("micclass:=Browser").Page("micclass:=Page" ).WebList("name:=sB","html tag:=SELECT").Select "#4"
QTP complains "The "[ WebList ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object." For that reason, as you see in the line above I have a couple of properties added to the WebList object to make sure the object's recognized.
I was trying to use Mark's (mwsrosso) DP suggestion in one of the threads: http://www.sqaforums.com/showflat.php?Ca...amp;Search=true
Your help is appreciated!
Re: How to select a WebList item using DP?
Never mind members. I figured it out. I had to add a index value to the WebList.
Browser("micclass:=Browser").Page("micclass:=Page" ).WebList("name:=sB","index:=0").Select "#4"
Even though only 1 WebList appears on page, there appears to be hidden CSS objects on page with similar descriptions which cause the QTP to complain.
Mark's solution in the thread above still holds good!