Can you just use the below function to see if this is working for you.
To call the function use the below code
Call SelectWebListValue("Your Value","WeblistObject")
Regards,
Ankesh
Remove frame from the function if it is not there in your object hierarchy.
Code:
Function SelectWebListValue(strValue, strObjectName)
'Get the total no of items in that dropdown
intItemsCount=Browser("").Page("").Frame("").WebList(strObjectName).GetROProperty("items count")
'Browser("").Page("").Frame("").WebList(strObjectName).Highlight
For intIndex = 1 To intItemsCount
strTextFrmAppl=Browser("").Page("").Frame("").WebList(strObjectName).GetItem(intIndex)
If strTextFrmAppl= strValue Then
Browser("").Page("").Frame("").WebList(strObjectName).Select strValue
Reporter.ReportEvent micPass,"Weblist selection","Given value ("& strValue &") selected"
SelectWebListValue= True
Exit For
ElseIf intIndex=intItemsCount Then
Reporter.ReportEvent micFail,"Weblist selection","Given value ("& strValue &") is not present"
SelectWebListValue= False
End If
Next
End Function
To call the function use the below code
Call SelectWebListValue("Your Value","WeblistObject")
Regards,
Ankesh
Remove frame from the function if it is not there in your object hierarchy.