Forum Discussion
irina_lukina
15 years agoSuper Contributor
Hi, Anil.
As far as I understand, you are trying to update the value of the drop-down list using the ClickItem method, right?
If so, the problem is caused by the fact that you used this method incorrectly as the method must be called using the following syntax: TestObj.ClickItem(Item_Name).
In other words, replace the following two lines of your code:
iexplore.Item("cboCertifyingCompany").ClickItem = arrStr(3) ‘this is dropdown list which is not getting updated
‘ ...
iexplore.Item("cboCountries").ClickItem = arrStr(5) ‘this is dropdown list which is not getting updated
with these ones:
iexplore.Item("cboCertifyingCompany").ClickItem(arrStr(3))
' ...
iexplore.Item("cboCountries").ClickItem(arrStr(5))
Does this help?