Micro Focus QTP (UFT) Forums
Cannot identify the object "[ WebList ]" while using descriptive programming - 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: Cannot identify the object "[ WebList ]" while using descriptive programming (/Thread-Cannot-identify-the-object-WebList-while-using-descriptive-programming)



Cannot identify the object "[ WebList ]" while using descriptive programming - Uma - 08-26-2011

Hi
Here,for the weblist I am giving ordinal identifier,and I am passing the value for the property name and I am giving one default value too.
Code:
"Browser("opentitle:="&result,"application version:=internet explorer 7").
Page("title:=RETS Server(.*)","index:=0").WebList("index:=0","name:="&Ty,"select type:=ComboBox Select").
Select "TypeGmd"".
but it always gives the following error,

Cannot identify the object "[ WebList ]" (of class WebList).
Verify that this object's properties match an object currently displayed in your application.

[I checked with the object spy,It has the correct value what i entered here]
Any help?
Thank you
Uma


RE: Cannot identify the object "[ WebList ]" while using descriptive programming - Uma - 08-27-2011

It works if I give unique values


RE: Cannot identify the object "[ WebList ]" while using descriptive programming - Arul - 08-27-2011

Uma,
Please try to find the page is highlighted or not. then we can find out the problem in weblist object.

Code:
Browser("opentitle:="&result,"application version:=internet explorer 7").
Page("title:=RETS Server(.*)","index:=0").Highlight
If anything wrong correct me

regards,
Arul.D


RE: Cannot identify the object "[ WebList ]" while using descriptive programming - jyotikrushna - 09-23-2011

Hi, can u plz try the below code:

Code:
dim oList
set oList=description.create()
oList("micclass").value="WebList"

set oList1=browser("title:=.*").page("title:=.*").childobjects(oList)
cn=oList1.count

if cn <>0 then
oList1(0).select"TypeGmd"
else
msgbox "weblist isn't present on the page"
end if