Just so I can learn to use Ranorex (please assume I'm not a programmer at all) I decided to test the well known calc.exe program just to build my Ranorex skills and use a well known problem-domain to learn how to create simple suites and organize and learn to have a strategy for managing many suites.
The result control in calc.exe is in fact a fake/empty control or container for a number of other controls:
I made a mash here to show all the controls in gray - the inner control is the actual windows control we want to validate. Ranorex only detects the outer control
There is a page with lots of clues as to why, http://www.ranorex.com/support/user-gui ... oting.html but I would have thought that a really old win16 ported application would be typical of many legacy apps that we might want to automate the testing of and then never worry for regressions. Or is there something that I can learn in terms of advanced Validation-point and manual repository editing /xPath techniques here?
I'm only asking this, because the App I've been asked to test is in WPF. But it starts to do similar things and uses control visibility extensively to show status or progress in a wizard. My calc example is a bit obscure I know, because calc is very naughty and uses 2 overlapping controls to display to the user.
/edit
Just spotted this thread : http://www.ranorex.com/forum/no-identif ... t7270.html . which seems to provide an RanorexPath solution...
The xpath is looking ok to me, but Ranorex is not able to find the control, and clues?
Ranorex Spy cannot read the result control in calc.exe
Ranorex Spy cannot read the result control in calc.exe
You do not have the required permissions to view the files attached to this post.
pros:Powershell automation guru
cons:UI automation hacker/n00b
Conrad Braam
cons:UI automation hacker/n00b
Conrad Braam
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Ranorex Spy cannot read the result control in calc.exe
Hello conradb,
I'm not exactly sure what do you mean with the "inner" and "outer" control, but Ranorex is able to recognize the result numbers in the Windows calculator. The generated RanoreXPath for the control is the following: /form[@title='Calculator']/?/?/container[@instance='0']/text[@controlid='150']
In order to validate the text within the control you can use the validation action within the Ranorex Recorder.
I hope I could answer your question.
Regards,
Bernhard
I'm not exactly sure what do you mean with the "inner" and "outer" control, but Ranorex is able to recognize the result numbers in the Windows calculator. The generated RanoreXPath for the control is the following: /form[@title='Calculator']/?/?/container[@instance='0']/text[@controlid='150']
In order to validate the text within the control you can use the validation action within the Ranorex Recorder.
I hope I could answer your question.
Regards,
Bernhard
You do not have the required permissions to view the files attached to this post.
Re: Ranorex Spy cannot read the result control in calc.exe
Sure did. You guys are the boz.
Thanks for your patience, it looks like I had to hit the refresh button in Spy or something, because I was not identifying/finding the edit control because the node (Container) was not probably showing it's child controls. I think I had to hit Refresh and viola, it's perfectly there now, no idea why the node did not want to expand before. (I blame my eyes for this.)
It's so easy to just keep on taking the same wrong turning when stuck.
Can someone tell me the significance of some containers being gray and some being black in the browser?
Thanks for your patience, it looks like I had to hit the refresh button in Spy or something, because I was not identifying/finding the edit control because the node (Container) was not probably showing it's child controls. I think I had to hit Refresh and viola, it's perfectly there now, no idea why the node did not want to expand before. (I blame my eyes for this.)
It's so easy to just keep on taking the same wrong turning when stuck.
Can someone tell me the significance of some containers being gray and some being black in the browser?
You do not have the required permissions to view the files attached to this post.
pros:Powershell automation guru
cons:UI automation hacker/n00b
Conrad Braam
cons:UI automation hacker/n00b
Conrad Braam
Re: Ranorex Spy cannot read the result control in calc.exe
Hi,
Gray element means it's in 'invisible' state. If you check properties of such element, you will find 'Visible' attribute set to 'false'.
Gray element means it's in 'invisible' state. If you check properties of such element, you will find 'Visible' attribute set to 'false'.
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