Unable to switch Tabs using Ranorex
Posted: Mon Oct 24, 2011 5:08 am
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
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