how to retrive the value of combobox, texbox that are part of the swftoolbar
for e.g. if my toolbar cotains one combobox
1. i select particular value in the combo box
2. then i click the apply button
now wht i want, i want to retrive the selected value. as my qtp recognises only swftoolbar and not the individual controls in it.
i tried to check the function getItemProperty i am getting error:
parameter key not found.
SwfWindow("").SwfToolbar("").GetItemProperty(toolbarname,strtool,"Enabled")
Hello Shirkaan,
I created CAS-86241-K7XT7G to assist you with this.
I want to check that one of the tool is enabled or not.
I am using following code:
SwfWindow("AVEV Instrumentation").SwfWindow("SwfWindow").SwfToolbar("SwfToolbar").GetNAProperty("Tools[Issue].Value")
It is throwing exception that Tool[Issue] not valid.
I want to check that 'Issue' tool is enabled.
How to use 'EnabledResolved' property in above code?
Please help me out.
Now what i want to retrieve the all items in that particular combo box. can u help me in this regard?
hi, i was able to find the value of that particular combo box using the following lines of code.
here KeyStringCal is my own array with the keys of the combo boxes i want to take.
because "Value" property is valid for combo box, text box whether "text" property is valid for calender or dateselector i suppose.
set Toolbars = SwfWindow("").SwfToolbar("").Object.ToolbarsManager.Tools
For x = 0 to (Toolbars.count) -1 For y = 0 to arraycount If Toolbars.GetItem(x).Key = KeyStringCal(y) Then PutValues(y) = Toolbars.GetItem(x).value End if Next Next
Hi,
Can you paste the exact line of code that is giving you the error message "IG : Member [Tools] not valid."? The reason I ask is "Tools" is definitely a valid property on the ToolbarsManager, so I believe something else is going on here.