12-04-2009, 05:00 PM
In my application, the webcomboBox would appear as webelement of the grid, but in clicking on the cell, the webelement would appear as "WebList", hence not able to choose a particular item from the web list. The code is provided as
The QTP script runs without any problem, but the item is selected from the list
Code:
Browser("XXXX").Page("XXXX").WebElement("html id:=ctl00xContentPlaceHolder1xUserControl1xGrid1xGrid_rc_0_11").Click
Browser("XXXX").Page("XXXX").WebList("html id:=ctl00xContentPlaceHolder1xUserControl1xGrid1xGrid_vl","name:=select").Select "Orange"
The QTP script runs without any problem, but the item is selected from the list