Page 1 of 1

Button isn't present in tree Browser and Results

Posted: Wed Nov 20, 2013 2:34 pm
by dariof
Hi,
I have a problem with a button that I use to open a new window.
This button isn't present in the tree Browser and Results, and also with View Spy - Track I cannot select the button.

You can see the button in the attached image (for example the button associated to the textbox Acid concentrate)

I have also attached a snapshot of the program.

Thanks for your help.

Re: Button isn't present in tree Browser and Results

Posted: Thu Nov 21, 2013 4:55 pm
by Support Team
Hello dariof,

Please post a Ranorex Snapshot of your application.
This would help us in analyzing your issue.
Please take a look at our User Guide for more information on how to create snapshot files.

Regards,
Markus (T)

Re: Button isn't present in tree Browser and Results

Posted: Fri Nov 22, 2013 9:05 am
by dariof
I have already attached the snapshot in the previous post. :D

Thanks

Re: Button isn't present in tree Browser and Results

Posted: Fri Nov 22, 2013 1:50 pm
by mzperix
Hi,

Until the experts at Ranorex solve the recognition problem, I suggest a workaround:
Use the ability of Ranorex to use relative coordinates on where to click on the button.

For example, the Rxpath for the Acid Concentrate textbox is:

Code: Select all

/form[@name~'^TSS\ -\ Therapy\ Support\ Sui']//tabpage[@name='Treatment prescription']/?/?/container[@automationid='browserFrame']//tabpagelist[@automationid='PART_TabControl']/tabpage[2]/text[9]
If you use this element is Ranorex Studio, then you can set the Location parameter to the right end of the textbox. You can use exact pixel parameters, or even percentage parameters. For example if you set the location parameter to .95;.5 then it will click on 95% of the width and at 50% of the height of the textbox.

See attached picture.

Hope this helps, as for now :)

Best Regards,
Zoltán

Re: Button isn't present in tree Browser and Results

Posted: Mon Nov 25, 2013 5:31 pm
by Support Team
Hello dariof! Hello Zoltán!

@dariof:
Thank you for posting your snapshot.
It seems that UIA is not implemented correctly for this button.
Are you in contact with the development team of your application?

@Zoltán:
Thank you for posting this nice workaround :-)

Regards,
Markus (T)