Forum Discussion
Hi Alex,
I edited the ‘Object Mapping Settings’ for ‘Win32 Controls and Windows | Tab control’ Category for that Project and added the WndClass of the Frame containing the Tabs.
Please have a look at the attached Screenshot TabControlObjectMappingSetting.png.
When I did this, I found ‘ClickTab’ Method in the ‘Actions’ Section of the Frame Object’s ‘Object Properties’ Window, which was not available before adding the Class Name of the Frame containing the Tab. I have attached another Screenshot ObjectPropertiesForTabControl.png
However, when I tried to make use of the ‘ClickTab’ Method, with the Tab Index, the Script did not run successfully. TestComplete was not able to recognize the Tab Control within the Frame. Also, I verified this, by recording the Script for clicking on the Tab. TestComplete used FrameObject.Click(x,y) again, in spite of adding the Class Name of the Frame to that ‘Object Mapping Settings’ for ‘Win32 Controls and Windows | Tab control’ Category.
In addition, I have attached a Snapshot of the Frame containing the Tabs FrameContainingTabs.png.
Please let me know if am missing anything.
Thanks for your help.
Regards,
Sushma.