Could you please help me with the following issue.
I have a WPF application with structure like:
And I have an issue with accessing elements within container.
I'm using RxPath, like
Text txt = "/form[@name='MainForm']/element[@automationid='Category']/container/button/text[@name='Text1']"; txt.Click();During this code execution , cursor moves to the upper left corner and 'Click' is performed.
There are no exceptions from Ranorex.
I tried to explore elements using Ranorex Spy.
When I press "Track" and select Button from my application, I get the result path, like:
If select 'container' and expand it, in result tree I can see also Buttons.
But if select some Button and perform "Update path", I again have result path that ends at container.
If select some Button on result tree, I see that this Button can have properties Enabled=True, Valid=True, Visible=False or Enabled=False, Valid=False, Visible=True.