Identify the WebList - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Identify the WebList (/Thread-Identify-the-WebList) |
Identify the WebList - Unleash Rajesh - 08-24-2011 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" RE: Identify the WebList - gaveyom - 08-26-2011 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 RE: Identify the WebList - shivu.hanu - 01-03-2012 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 RE: Identify the WebList - sundari_msls - 01-03-2012 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" |