Page 1 of 1

Ranorex Spy 2.0 Preview - .Net DataGridView Cell

Posted: Sat Nov 22, 2008 1:10 am
by Oom Koning
This may be the wrong place for this question, but perhaps you can help me change the timeout for Ranorex Spy's Element Repository to Track a selection of a cell in a DataGridView on a WinForm app.

The path shows up in the textbox next to the Track button, but the selection never appears in the list below, and consequently is not converted to code. I can obviously cut and paste into the CreateAdapterForPath code, but that defeats the purpose somewhat. Any suggestions?

Posted: Tue Nov 25, 2008 11:32 am
by Support Team
It might be the case that the Spy is running into a timeout for large datagridviews. Please check the following:

Does tracking work in in the ElementBrowser?
Did you try instant-tracking (Ctrl-LWin) ?

Michael
Ranorex Team

Posted: Tue Nov 25, 2008 5:03 pm
by Oom Koning
Thanks for your response Michael.

I decreased the size of the dataset displayed by the datagridview, and that seems to help. Ctrl-LWin does populate the list, in fact rather prolifically - how does one get control back from this process once it starts?

Posted: Wed Nov 26, 2008 6:11 pm
by Support Team
In the spy, you have to wait until the internal timeout expires.
If you are using Ranorex from code, you can set timeouts for find operations.

Depending on what you are trying to accomplish, you can also directly access properties and methods in .NET controls:
http://www.ranorex.com/blog/transfering ... et-control

Michael
Ranorex Team