Micro Focus QTP (UFT) Forums

Full Version: Identify the WebList
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi .

I am facing a problem in object identification on my web application.I am not able to select the value from WebList through DP. I have set all the properties of that weblist.but still not identifying the list...

Can anyone tell me ...wats the problem in identifying the Weblist. The code used is,


Code:
Browser("name:= X").Page("tilte:= X").WebList("micclass:=weblist","html tag:=SELECT", "class:=list_container", "html id:=category ", "name:=category","select type:=ComboBox Select").Select "#1"
Hi Rajesh,

hope this will help u

Code:
Browser("micclass:=Browser").Page("micclass:=Page").WebList("micclass:=weblist","html tag:=SELECT", "html id:=category ", "name:=category","select type:=ComboBox Select").Select "#1"

or


Code:
Browser("micclass:=Browser").Page("micclass:=Page").WebList("micclass:=weblist","html tag:=SELECT", "html id:=category ", "name:=category","select type:=ComboBox Select").Select 1

actually that many properties is not required to select option from weblist

just u can pass only the unique property which is "html id" or "name" like below

Code:
Browser("micclass:=Browser").Page("micclass:=Page").WebList("html id:=drpyear").Select 1


Thanks & Regards,
G@veyom
Code:
browser("title:=property name").page("("title:=property name").weblist("name:=prorpety name").select "#index"

where property name=go and spy on browser page, and corresponding weblist object
Code:
Browser("name:= X").Page("tilte:= X").WebList("micclass:=weblist","html tag:=SELECT", "class:=list_container", "html id:=category ", "name:=category","select type:=ComboBox Select").Select "#1"

In the above statement,
- micclass need not be used. Because you already specified the class name i.e. weblist()
- html id:=category there is an extra space after category. Instead you can use .*
- select type:=ComboBox.*

Please try with the below statement:
Code:
Browser("name:= X").Page("tilte:= X").WebList("class:=list_container", "html id:=category.*", "name:=category","select type:=ComboBox.*").Select "#1"