Ask a Question

Dynamic WPF Object

abrar22
Contributor

Dynamic WPF Object

Hi, 

 

I have an issue where i am getting dynamic object which i want to click. For Example:

 

Aliases.wndDockingWindow.wndTabWindow.HwndSource_OptionsWindow.OptionsWindow.PART_Content.this.this.TransitionBox.this2.RiskView.ItemsControl.WPFObject("TextBlock", "48.09%", 2)

 

So Every time i open up application this % value can change. Ho can i handle these type of elements?

 

 

 

Thanks

A

 

 

1 REPLY 1
AlexKaras
Community Hero

Hi,

 

You must either

-- Figure out the set of stable and unique identification parameters for this TextBlock element; or

-- Use a multi-step approach like "for the 'Parameter Name' column of the RiskView table find a row that contains the 'Persent Amount' value and for the found row check the value of the cell from the 'Parameter Name' column".

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
================================
cancel
Showing results for 
Search instead for 
Did you mean: