Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
Coded UI testing wingrid. Iterate rows past visible scroll region
posted

Hi,

I am trying to write a Coded UI project to get all the values in a column of an UltraGrid.

I have an UltraWinGrid with more rows than can be displayed on screen, so there are rows that have to be scrolled to be visible.

I have a Coded UI project that can iterate through all currently visible rows and get cell values.

I could send keystrokes to key down the grid, eg

1. Select Grid
2. Ctrl-Home to guarantee top row is top
3. Page Down so that top row is still top, but cursor is at bottom visible row
4. Read top row
5. Send down cursor keystroke. 
6. Go to 4 until we are at bottom
7. Iterate through remaining visible rows.

My question is how do I know that I am at the bottom of the grid (step 6)

I am using 2012 volume 2. .Net 4.0 application.
The test project is in Visual Studio 2012 .Net 4.5. 

Thanks

David