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 Grid2. Ctrl-Home to guarantee top row is top3. Page Down so that top row is still top, but cursor is at bottom visible row4. Read top row5. Send down cursor keystroke. 6. Go to 4 until we are at bottom7. 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
Hello, I'm having the same issue but with a WPF DataGrid. Only loading rows when they come into view.
Just wondering if the solution above would work with this too?
Thanks.
Hello Almir,
I'm not exactly sure what is going on here.
Most of the properties available off of the UltraUia TestControls are inherited from the base Wpf TestControls. In cases where they utilizes UIA behind the scenes, it should work. However, in some instances, the Coded UI Test Framework utilizes code-specific to the WPF control which will not work for our Windows Forms control. In some instances we can override the behavior; in others we have to work around it. The primary focus of our Coded UI Test support implementation was to make sure record-playback was successful utilizing the CodedUITestBuilder.
Possible workarounds:
If you want to discuss this UltraUiaComboBox further, please create new thread in this forum. I'd prefer not to piggyback this older Grid-CodedUI thread for a ComboEditor related issue.
Thanks,
Chris
Chriss
I know that this is not place to talk about UltraUiaComboBox, but, could you help me or transfer me to appropriate thread.
I am having issues with UltraUiaComboBox. Simply i want to select item from dropdown and i do this:
Combobox.SelectedItem = "Item"... After this I see that it clicks on dropdown icon and it is moving from top to bottom of dropdown list and at the end if fails.
What is going on ?
Hi Chris
Hm.. maybe that is our implementation, currently i don't have access to the code i will check it latter.
However i managed to find how to doubleclick on that row, it was pretty simple, last row in the list is actually that row so...
Thanks Almir
Hey Almir,
I'm not aware of any grid functionality that adds a new row on a double-click. Is this some functionality that you've built into your application? Can you post a screenshot so I can determine what UI item you are referring to?