Same kind of incremental object name
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same kind of incremental object name
HI,
I have issue related to Same type of elements names. In our application we can add the rows which are same as previous rows. The issue I am facing is when I add second row the element name is same as 1st row. For Example in Screen Shot attached the Long element in both rows has same object. Is there a way to recogize the incremental same type of object.
Aliases.Citi_Velocity_Bootstrapper.wndDockingWindow.wndTabWindow.HwndSource_OptionsWindow.OptionsWindow.PART_Content.this.this.TransitionBox.this.TransitionElement.this.RichGrid.RichCell.RichCellList.RichCell.RichCellList.RichCell.RichCellList.RichCell.RichCellList.RichCell.RichCellList.WPFObject("RichCell", "", 1).WPFObject("ConditionalContent", "", 1)
Aliases.Citi_Velocity_Bootstrapper.wndDockingWindow.wndTabWindow.HwndSource_OptionsWindow.OptionsWindow.PART_Content.this.this.TransitionBox.this.TransitionElement.this.RichGrid.RichCell.RichCellList.RichCell.RichCellList.RichCell.RichCellList.RichCell.RichCellList.RichCell.RichCellList.WPFObject("RichCell", "", 1).WPFObject("ConditionalContent", "", 1)
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Same approach as in http://community.smartbear.com/t5/Desktop-Testing/Dynamic-WPF-Object/m-p/111479#M4764
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for your reply,
I am not sure how can user unique identification parameters or multistep approach as whole element is same for both. Can you give me any practical example.
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please post a screenshot of the object tree section where the two objects are found.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
PLease see the screen shot for 2 objects. The 2 elements are:
Sys.Process("ABC").Window("DockingWindow", "ABC", 2).Window("TabWindow", "ABC", 1).WPFObject("HwndSource: OptionsWindow", "Option Tiles").WPFObject("OptionsWindow", "Option Tiles", 1).WPFObject("PART_Content").WPFObject("this").WPFObject("this").WPFObject("TransitionBox").WPFObject("this").WPFObject("TransitionElement", "", 1).WPFObject("this").WPFObject("RichGrid", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 2).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 3).WPFObject("tb")
Sys.Process("ABC").Window("DockingWindow", "ABC", 2).Window("TabWindow", "ABC", 1).WPFObject("HwndSource: OptionsWindow", "Option Tiles").WPFObject("OptionsWindow", "Option Tiles", 1).WPFObject("PART_Content").WPFObject("this").WPFObject("this").WPFObject("TransitionBox").WPFObject("this").WPFObject("TransitionElement", "", 1).WPFObject("this").WPFObject("RichGrid", "", 1).WPFObject("RichCell", "", 2).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 2).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 1).WPFObject("RichCellList", "", 1).WPFObject("RichCell", "", 3).WPFObject("tb")
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, did you mean to say that this object in object tree which is the same object according to the screenshots, appears as 2 different text nodes in the application(as per your first screenshot in the original post)?
When you answer that please post the properties windows for these 2 objects, as shown on the right of the object tree when you highlight the object in the tree.
