Forum Discussion
HKosova
Alumni
14 years agoHi Sudhir,
1. Locate the target Edit objects using Name Mapping and the Extended Find setting. In this approach, you add the target object to Name Mapping, but do not add its dynamic parent objects so that they aren't used during the object identification. Here's the way to do this:
* Open the Object Browser and locate the target Edit object.
* From the object's context menu, select Map Object and follow the steps in the wizard.
* In the Name Mapping editor, activate the Extended Find setting for the mapped Edit object, as explained in this article.
* Delete the Edit object's parent Grouping objects with the dynamic index from both Mapped Objects and Aliases sections.
Then, you can refer to the Edit object from your tests using its alias specified in Name Mapping.
2. Locate the target Edit objects dynamically using the Find Object operation (in keyword tests) or the FindChild method (in scripts). You need to apply this operation to a constant parent object - e.g. to WebviewWindowClass.grouping.grouping, or WebviewWindowClass, or webKitBrowser1, and so on. In the search criteria, you can use the following properties and values:
ObjectType = Edit
Caption = <object text>
I hope this helps.
There're several ways to handle the dynamic hierarchy; just use the one that suits you best:
1.Grouping No chnages when we swap the chart axis ( This is my application feature)
1. Locate the target Edit objects using Name Mapping and the Extended Find setting. In this approach, you add the target object to Name Mapping, but do not add its dynamic parent objects so that they aren't used during the object identification. Here's the way to do this:
* Open the Object Browser and locate the target Edit object.
* From the object's context menu, select Map Object and follow the steps in the wizard.
* In the Name Mapping editor, activate the Extended Find setting for the mapped Edit object, as explained in this article.
* Delete the Edit object's parent Grouping objects with the dynamic index from both Mapped Objects and Aliases sections.
Then, you can refer to the Edit object from your tests using its alias specified in Name Mapping.
2. Locate the target Edit objects dynamically using the Find Object operation (in keyword tests) or the FindChild method (in scripts). You need to apply this operation to a constant parent object - e.g. to WebviewWindowClass.grouping.grouping, or WebviewWindowClass, or webKitBrowser1, and so on. In the search criteria, you can use the following properties and values:
ObjectType = Edit
Caption = <object text>
This is how WebKit reports its MSAA object hierarchy. In this case, you'll need to use one of the Edit objects. I'm afraid, there's no solution other than this one.
2. For few chart Labels , it shows two Group item for example
If Chart Label is 'Chezk Republic' it displayed two group item as
...grouping.grouping.grouping(22).Edit("Chezk")
...grouping.grouping.grouping(23).Edit.("Republic")
You can change the chart scrollbar positions using the HScroll.Pos and VScroll.Pos properties of the WinFormsObject("panelBaseScrollable") object in your application. For example, you could increment HScroll.Pos from HScroll.Min to HScroll.Max in a loop until the VisibleOnScreen property of the target Edit object becomes True.
Third major issue is , for large values in chart the scroll bar get activate. And above trick works only if the passing group item is visible on screen.Means the group item is there on the page, but we need to move the scroll bar. How to do this ?
I hope this helps.