Hi,
I am using Test Automation for HP UFT WIndows forms version 2016.1.
When I recorded a script,it recognizes control as UltaWinExplorerBar. When it is called to select item by specifying the group name and item name , it's selecting the item present before the given item in one section (in one case) and the first item in another section ( Supposed to select 3rd item in another case).Attached the object properties shown in OR.
My code is as below.
SwfWindow("Menu: Window").SwfObject("VerticalMenu").SetActiveGroup "Appointments"
SwfWindow("Menu: Window").SwfObject("VerticalMenu").SelectItem "Appointments","Appointment Schedule"
Is there any additional properties to be selected to make it work or Any alternative to work as per expectation? Please help me to identify the issue here.
Hello,
This might be related to the Style settings on the ExplorerBar in your application. Was the above script generated by the recording or was it written by hand? What item becomes selected when clicking on the Appointments Schedule item in the application?
In addition, please provide the text and keys of the items that are being selected incorrectly and the text and keys of the items you are trying to select.
Thanks Mike for reply.
The above script was recorded from UFT. Clicking behavior varies from group to group(Section). In first section, 2nd item is selected instead of 3rd item. In another section, failed to select the given item(i.e. not clicking on any item).
When I see ActiveItem property, item Text property is set to 'Appointment Schedule' and Key property is set to the same string but in upper case.
The behavior you're describing doesn't sound like expected behavior. I am not sure what would cause the wrong item to become selected. If you are able to provide a reproduction sample, I can look further into this to see what might be going wrong. Please let me know if you would prefer not to upload your sample to the public forum and I will create a private support case to receive it.
Sure.Can upload script in private space.Please Let me know what details you are looking for.