Forum Discussion

abrar22's avatar
abrar22
Frequent Contributor
9 years ago

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

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

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