I'm in the process of trying out the RanorexNet library for a project I'm about to start. The experience has been pleasant all in all, but one strange thing that I'm struggling with is that the Description property of objects of type Element which represent rows in a regular windows ListView32 control return null some of the time.
Out of 100 calls to Description on the same element, for example, 5 or 10 times null may be returned. Certain rows may return null consistently for a short while, may return null forever, and may return a meaningful string after one attempt. Voodoo behavior.
The code goes like this:
Code: Select all
m_ListView = myForm.FindClassName("SysListView32");
Element crossRateListElement = m_ListView.Element;
Element[] gridRows = crossRateListElement.FindChildren(Role.ListItem);
foreach (Element currentRow in gridRows)
{
string name = currentRow.Name;
string description = currentRow.Description;
if (description != null)
{
// Use 'description' to extract data
}
The problem may be related to one of the following:
1. The code runs runs on a virtual Windows server, meaning the only GUI which is present is the remote desktop based GUI which I see in my own computer.
2. Some list items are out of view, meaning scrolling is required to see them.
Unfortunately, I consider this a major problem since it prevents the library from filling some acute reliability requirements.
Are these issues known? Have they been discussed before? Is there any possibility that the full version will be better at getting at the problem, or is its internal implementation completely similar to that of the evaluation version?
Thanks in advance!