Micro Focus QTP (UFT) Forums
Object doesn't support this property or method - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Object doesn't support this property or method (/Thread-Object-doesn-t-support-this-property-or-method)



Object doesn't support this property or method - veerusat - 06-12-2012

Hi all,

I was trying to parameterize the values in a drop down list and perform certain operation for each value.But i got the following error message.
Can any one help me out of this.

"Object doesn't support this property or method:
Code:
'Browser(...).Page(...).Frame(...).GetItemsCount'"

My code was

Code:
Dim co
Set co=Browser("...").Page("...").Frame("DataFrame_4").GetItemsCount
For i=0 to co-1

val=Browser("...").Page("...").Frame("DataFrame_4").GetItem(i)
Browser("...").Page("...").Frame("DataFrame_4").WebFile("f1").Set "C:\Desktop\Today.txt"



RE: Object doesn't support this property or method - AAB - 06-13-2012

Hi,
In the above code, the non-object value is returned so "Set" should not be used with variable "co".
I think that ways it should work.

Thanks