Doubt regarding control visible on window
Hi Friends ,
In my application ,I need to search for some objects . The result is displayed in a table and there is a "Refine search" link at the bottom of the table . I need to verify that when I click on that link the focus goes to top of the page . The top section has some fields in which i can enter crieteria for the search like document name,type etc and a search button .
My approach is that when i click on "Refine search" link .I'll check whether any control is visible to user or not .But could not accomplish it . If I try to click on "Search" button then even if it is not visible the window scrolls and make it visible . I've uploaded UI of the application .
Please help me to solve this issue .
- Thanks ,
Veena Katiyar .
Re: Doubt regarding control visible on window
You would have to get the rectangle of the control (in screen coordinates) and compare it to the rectangle of the host window (again in screen coordinates).