Forum Discussion
Ravik
10 years agoSuper Contributor
Hi Vijay,
Try This it may help you-
Function selectList(ddl_objName, objVal)
Dim item,icount ,ddlItemlist
If ddl_objName.Enabled and ddl_objName.wItemCount >=1 Then
ddlItemlist = ddl_objName.wItemList
If Instr(ddlItemlist,objVal)>1 then
ddl_objName.ClickItem(objVal)
Else
Log.Message "Item is not available in the list"
End If
End If
End Function
Where - ddl_objName is your object name and objVal is your expected value.
Try This it may help you-
Function selectList(ddl_objName, objVal)
Dim item,icount ,ddlItemlist
If ddl_objName.Enabled and ddl_objName.wItemCount >=1 Then
ddlItemlist = ddl_objName.wItemList
If Instr(ddlItemlist,objVal)>1 then
ddl_objName.ClickItem(objVal)
Else
Log.Message "Item is not available in the list"
End If
End If
End Function
Where - ddl_objName is your object name and objVal is your expected value.
Related Content
- 3 years agoOAn
- 5 years agopaarmann-ara
- 10 years agoAxelChrist
Recent Discussions
- 2 hours agoMW_Didata
- 13 hours agod_gfleetwood92