Micro Focus QTP (UFT) Forums

Full Version: Object doesn't support this property or method
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"
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