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
container name is changing to 'VisComp'
Re: container name is changing to 'VisComp'
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.
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 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