Hi
I need to check the following functionality in a Windows .NET application:
The application window is long, you have to scroll down to see the lower part of the window.
If you miss some mandatory fields, a warning get displayed to the right of the page. If you click on the warning, it jumps to the field in question. The application does autoscrolling to take you to the field if it is in the lower part of the screen you cannot see.
I need to check the following with Ranorex:
1. Click on the warning (for a field that is in the lower section, so not currently visible)
2. Verify that the autoscrolling took place - that the field in question is now visible on the screen.
3. Verify that the field in question has the focus. (This part was easy, the HasFocus property worked fine).
It is Step 2 that I have trouble with. I checked the "visible" attribute, but this returns true for this field whether it is visible on the screen or not. This is probably because the whole window (long or not) are open (active) at the time, even though the user can't actually SEE the fields on the lower portion of the screen. The "visible" property seem more useful for drop down lists and such.
Is there a property or function I can use to determine if a field is actually in visible VIEW of the user? I basically need to verify that the autoscrolling took place.
Thank you