Ranorex Spy 2.0 Preview - .Net DataGridView Cell

Class library usage, coding and language questions.
Oom Koning
Posts: 3
Joined: Sat Nov 22, 2008 12:56 am

Ranorex Spy 2.0 Preview - .Net DataGridView Cell

Post by Oom Koning » Sat Nov 22, 2008 1:10 am

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Tue Nov 25, 2008 11:32 am

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

Oom Koning
Posts: 3
Joined: Sat Nov 22, 2008 12:56 am

Post by Oom Koning » Tue Nov 25, 2008 5:03 pm

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Wed Nov 26, 2008 6:11 pm

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