Issue with accessing elements withing "container" adapter
Posted: Tue Apr 16, 2013 9:02 am
Hi,
Could you please help me with the following issue.
I have a WPF application with structure like:
form/
..element/
....container/
......button/text
....... ...
......button/text
And I have an issue with accessing elements within container.
I'm using RxPath, like
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:
/form[@name='MainForm']/element[@automationid='Category']/container
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.
Thanks,
Vadim
Could you please help me with the following issue.
I have a WPF application with structure like:
form/
..element/
....container/
......button/text
....... ...
......button/text
And I have an issue with accessing elements within container.
I'm using RxPath, like
/form[@name='MainForm']/element[@automationid='Category']/container/button/text[@name='Text1']and code
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:
/form[@name='MainForm']/element[@automationid='Category']/container
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.
Thanks,
Vadim