Issue with accessing elements withing "container" adapter

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
vadim
Posts: 14
Joined: Tue Apr 16, 2013 8:22 am

Issue with accessing elements withing "container" adapter

Post by vadim » 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
/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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Issue with accessing elements withing "container" adapter

Post by Support Team » Thu Apr 18, 2013 3:55 pm

Hello,

Could you please post or send us ([email protected]) a Ranorex Snapshot in order to analyze your issue?
Please take a look at section Creating Ranorex Snapshot Files in our User Guide.

Thank you in advance.

Regards,
Markus (T)

vadim
Posts: 14
Joined: Tue Apr 16, 2013 8:22 am

Re: Issue with accessing elements withing "container" adapter

Post by vadim » Fri Apr 19, 2013 11:33 am

Hello Markus,

Thanks for answer.
But now all works fine.
Problem was gone the next day after my post.
If I see such issue again I will send email with Snapshot file.

Cheers,
Vadim