Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selecting the checkbox item within in a combox box
#1
Not Solved
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 :
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?


Attached Files
.doc   checkbox-combox.doc (Size: 639 KB / Downloads: 120)
Reply
#2
Not Solved
Hi..

Use Object Spy to get the Details of Perticular Check box in Combo box..

and Verify that object exist in obj repository or not..?
If it exist in object repository then chek..

Whether Default Properties of that object is enough to identified by QTP or not..
If not.. then u can add some more properties..
Reply
#3
Not Solved
i have used Object Spy to get the details of checkbox item,but I only got the details of combobox..there is no checkbox object infomation.and also could not able to select the checkbox which is within the combobox using the object spy.only we can select the combobox

This checkbox object is a child object of the combobox.
Reply
#4
Not Solved
get the itemcount for that combobox, then loop for all items and get micclass of the items... and set that as an object and set "ON" at your desired item(Loop)...
if it is not working...
let me know.
Reply
#5
Not Solved
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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to check Checkbox in SSDBGrid in windows application RamUFT 0 975 02-13-2020, 07:34 PM
Last Post: RamUFT
  Webtable Checkbox in UFT Syahirah 7 10,777 11-15-2017, 03:47 PM
Last Post: Ankur
  Cannot identify the specified item Beginner 0 2,327 06-22-2017, 04:55 PM
Last Post: Beginner
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,042 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  WinListView set item command Shahino007 0 2,530 10-06-2015, 03:57 PM
Last Post: Shahino007

Forum Jump:


Users browsing this thread: 1 Guest(s)