How to click a container

Ask general questions here.
vengaishiva
Posts: 62
Joined: Wed Mar 09, 2011 4:40 pm

How to click a container

Post by vengaishiva » Thu Nov 17, 2011 2:53 pm

Hi,
I am using Ranorex 3.0.1. In my UI ,I have 4 tabs. When I spy, Ranorex identifies all 4 tabs as container.
I want to click a specific container to proceed. But I can't click at the correct tab. How can i click. I am giving you the code here.

Element ele = @"/form[@controlname='MainForm']/container[@caption='panelContainer']/container[@controlname='MyOrders']";

ele.As<UnKnown>().moveTo();
ele.As<UnKnown>().Click();

In the above code, it can identify the element and randomly clicks at some location, not where the container is located.

Please help,

Thanks,
Siva R S

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to click a container

Post by Support Team » Thu Nov 17, 2011 3:08 pm

Hi,

It seems that Ranorex cannot identify the taps and therefore just shows it all as container.
Are you testing a specific technology like Flex, Java, ...?
If yes, please update to the new Ranorex version and perform the appropriate technology instrumentation.
Can you also post us a Ranorex snapshot of the taps?

Regards,
Markus
Ranorex Support Team
.
Image