12-06-2010, 10:44 AM
(This post was last modified: 12-06-2010, 10:46 AM by vangala srinivas.)
I have a problem in writing a script for selecting the checkbox item in a combox box. please help me.
my Problem in brief summary:
I have to select a checkbox item with in a combobox (combox box contains many checkbox items).
when I try to use the following code :
QTP is throwing error message:
“Cannot identify the specified item of the ModuleComb object. Confirm that the specified item is included in the object's item collection.”
I am using shared Object repository...
While adding the object of SwfWindow("Prompts : Answers") i have selected all object types in the define object filter of the Object Repostory Manager.only combox object is captured and checkbox item list object not captured.
ii)and also how to select the checkbox items in the combo box?
my Problem in brief summary:
I have to select a checkbox item with in a combobox (combox box contains many checkbox items).
when I try to use the following code :
Code:
SwfWindow("frmSplash").SwfWindow("Prompts : Answers").SwfComboBox("ModuleComb").Select "xxxx"
QTP is throwing error message:
“Cannot identify the specified item of the ModuleComb object. Confirm that the specified item is included in the object's item collection.”
I am using shared Object repository...
While adding the object of SwfWindow("Prompts : Answers") i have selected all object types in the define object filter of the Object Repostory Manager.only combox object is captured and checkbox item list object not captured.
ii)and also how to select the checkbox items in the combo box?