12-06-2010, 05:46 PM
Hi..
Thanks for the Reply...
when we use the getitemscount the combobox is returing the 0 count...so we can't go further scripting
Actually the Application functionality is like this: if we click the combobox..it will displays the checkbox item list.where we can select the items from this list.
Object repositories :
when we add the objects(shared rep) from ORM(Obj Rep Manager) ..it is captured as swfcombobox(ccb)..and no checkbox or list object within this object
so if write the script as : SwfWindow("frmSplash").SwfWindow("Prompts : Answers").SwfComboBox("ModuleComb").getitemscount..it is displaying count as 0
when we record from QTP(local rep)..it is captured as cclb (swf list)within the swfwindow(ccparent)..
so if write the script as : SwfWindow("frmSplash").SwfWindow("Prompts : Answers").SwfWindow("ccbParent").SwfList("cclb").Select "Nursing Postop"
QTP is throwing the error message:Cannot find the "cclb" object's parent "ccbParent" (class SwfWindow). Verify that parent properties match an object currently displayed in your application.
and we could able to view only the swfcombobox(ccb) in the application from view of the ORM and could not view the objects cclb (swf list)and the swfwindow(ccparent) from the Object Repository Manager(ORM)
Thanks for the Reply...
when we use the getitemscount the combobox is returing the 0 count...so we can't go further scripting
Actually the Application functionality is like this: if we click the combobox..it will displays the checkbox item list.where we can select the items from this list.
Object repositories :
when we add the objects(shared rep) from ORM(Obj Rep Manager) ..it is captured as swfcombobox(ccb)..and no checkbox or list object within this object
so if write the script as : SwfWindow("frmSplash").SwfWindow("Prompts : Answers").SwfComboBox("ModuleComb").getitemscount..it is displaying count as 0
when we record from QTP(local rep)..it is captured as cclb (swf list)within the swfwindow(ccparent)..
so if write the script as : SwfWindow("frmSplash").SwfWindow("Prompts : Answers").SwfWindow("ccbParent").SwfList("cclb").Select "Nursing Postop"
QTP is throwing the error message:Cannot find the "cclb" object's parent "ccbParent" (class SwfWindow). Verify that parent properties match an object currently displayed in your application.
and we could able to view only the swfcombobox(ccb) in the application from view of the ORM and could not view the objects cclb (swf list)and the swfwindow(ccparent) from the Object Repository Manager(ORM)