Ask a Question

Same kind of incremental object name

abrar22
Contributor

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

 

 

 

5 REPLIES 5
AlexKaras
Community Hero

Hi,

 

Same approach as in http://community.smartbear.com/t5/Desktop-Testing/Dynamic-WPF-Object/m-p/111479#M4764

Regards,
  /Alex [Community Hero]
____
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

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

 

djadhav
Regular Contributor

Please post a screenshot of the object tree section where the two objects are found.

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")

 

 

 

 

djadhav
Regular Contributor

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.

cancel
Showing results for 
Search instead for 
Did you mean: