09-25-2008, 11:25 PM
Hai,
I have a combo box and have to choose an item from the list of items displaying. I have my description as mentioned below. I basically achieve this by clicking on back on the webedit box and the entire list of items gets displayed in a drop down format. I give the no. of times down arrow key has to be pressed. This is how my code is, but its very inconsistent that the correct item is picked so Im trying description as below but i get object not found error.
I attached the s.shot of the obj spy.
I have a combo box and have to choose an item from the list of items displaying. I have my description as mentioned below. I basically achieve this by clicking on back on the webedit box and the entire list of items gets displayed in a drop down format. I give the no. of times down arrow key has to be pressed. This is how my code is, but its very inconsistent that the correct item is picked so Im trying description as below but i get object not found error.
Code:
Browser("Login").Page("Login").Image("Search_XPSilver").FireEvent "onmouseover"
Browser("Login").Page("Login").Image("Search_XPSilver").Click
Set oDesc = Description.Create()
oDesc("micclass").value = "WebElement"
oDesc("class").value = "ctl00MainContentctl00ActiveWidgetctl451-LayoutSettings-ColumnStyle"
oDesc("innertext").value = "Accountant 1"
I attached the s.shot of the obj spy.