Page 1 of 1

Unable to switch Tabs using Ranorex

Posted: Mon Oct 24, 2011 5:08 am
by vjai16
Hi,

I have a WPF Application that displays certain tabs on the UI. I am trying to automate two functionalities:

1) Switch between tabs
2) RIght click on the Tab control header (where tab name is listed)

The Ranorex path to the tab containers does not show any TAB related element in the XPATH. All I get is a Parent container (a Panel), and then a list of child containers for each TAB page on the UI. Inside each of these containers, there is a WPF container, that in turn has a Grid control.

Now I can find the path of any tab container, but I am not able to switch to or move to the referred tab. Instead, the currently selected tab remains selected. Though Ranorex reports that it successfully found the Container. This is the first problem.

The second issue is that I cannot do a right click on the Tab header. In actual functionality, I get different right click context menu's when I do a right click on the Tab header, and the tab body. The Ranorex will return a single RX path for the whole tab control, and a right click on the Tab control will always return the context menu that I get for the right click on the Tab Control body. The issue is how do I uniquely identy Tab header.

Any help is appreciated.
Thanks,
Vikas

Re: Unable to switch Tabs using Ranorex

Posted: Mon Oct 24, 2011 11:19 am
by Support Team
Hi!

ad 1) Switch between tabs
Did you already tried to use the Select() function of the tab you want to switch to?

If the Select() function of the tab won't solve your problem, please create a snapshot of your desktop and post it to the forum or send it via email to [email protected].

For questions on creating a snapshot, please go to http://www.ranorex.com/support/user-gui ... files.html.

ad 2) Right click on the Tab control header (where tab name is listed)
I do not understand what exactly you want to do - please post your snapshot file (or even better would be a video) and I will see what i can do.

Regards,
Martin
Ranorex Support Team