container name is changing to 'VisComp'

Ask general questions here.
jmchughsmart
Posts: 28
Joined: Wed Aug 12, 2015 6:44 pm

container name is changing to 'VisComp'

Post by jmchughsmart » Wed Dec 02, 2015 6:17 pm

Hi,

I have a question about Ranorex Spy.
The form screen I have has 6 tabs on it.
When I select the tab the container name is changing to 'VisComp'
/form[@title='Settings']/?/?/container[@name='visComp']

These are the some of names that are changing:
1) /form[@title='Settings']/?/?/container[@name='pnlGeneral']
2) /form[@title='Settings']/?/?/container[@name='pnlMedicating']
3) /form[@title='Settings']/?/?/container[@name='pnlStatus']

Is there a reason why this occurs?

Thanks,
Jim

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: container name is changing to 'VisComp'

Post by odklizec » Thu Dec 03, 2015 8:50 am

Hi Jim,

It would be much easier to help you if you could post a Ranorex snapshot of your AUT.

In my opinion, the behavior you experiencing is caused by your application. When you click the tab, the application most probably sets the tab container name from the actually selected tab name? Spy just "reads" the UI and its attributes. Actually, you should be glad the tab container changes its name according the selected tab! You can then validate the actual tab is the expected one and do the tab-specific actions. In many cases, tabs are often referred only by indexes, which makes the automation process a real pain. You see, it's much harder to create maintanable and reliable tests with just indexes, instead of proper IDs.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration