Dropdown list not getting updated while inputting the data from excel
Sub adprty1
Dim iexplore
Dim w5
Dim p
Dim xlSheet
Delay 3000
Set iexplore = Sys.Process("iexplore", 2).Page("http://qaserver/Default.asp").document.frames.Frame("mainFrame").document.all
iexplore.Item("btnAddProperty").click
Delay 3000
Log.message("You clicked on Add Property button...!")
Dim str, arrStr
str = ReadDataFromExcel()
arrStr = Split(str,":")
iexplore.Item("textPropName").Value = arrStr(0)
iexplore.Item("PropertyCode").Value = arrStr(1)
iexplore.Item("textareaPlotAddress").Value = arrStr(2)
iexplore.Item("cboCertifyingCompany").ClickItem = arrStr(3) ‘this is dropdown list which is not getting udpated
iexplore.Item("textPinCode").value = arrStr(4)
iexplore.Item("cboCountries").ClickItem = arrStr(5) ‘this is dropdown list which is not getting udpated
End Sub
Function ReadDataFromExcel()
Set Excel = Sys.OleObject("Excel.Application")
Call Excel.Workbooks.Open("E:\Anil-Backup\Test Complete\Projects_Old\Codding\Excel Files\Login_details.xls")
Delay 1000
log.Message(Excel)
For i = 1 to 2
s = ""
For j = 1 to 6
s = s + VarToString(Excel.Cells(i, j)) + Chr(13) + Chr(10) + ":"
Next
Log.Message "Row: " + VarToString(i), s
Next
ReadDataFromExcel = s
'Closes the driver
Call Excel.Workbooks.Close
End Function
Please help me on how to update the dropdown field?
Regards,
Anil