I've implemented the following code module WaitForCursorToLoad and I got this error: Custom cursors cannot be converted to string.
public static void WaitForCursorToLoad(int maxLoopDuration)
{
// store the current state of the cursor into a string variable
string currentState = Mouse.Cursor.ToString();
// Starts measuring the elapsed time
System.Diagnostics.Stopwatch newWatch = System.Diagnostics.Stopwatch.StartNew();
do {
// store the current state
currentState = Mouse.Cursor.ToString();
// Add a report info with the current state
Report.Info(currentState);
}
while (currentState == "[Cursor: WaitCursor]" && newWatch.Elapsed.Seconds <= maxLoopDuration);
// If you want the test to fail after maxLoopDuration:
if(newWatch.Elapsed.Seconds > maxLoopDuration)
{
Ranorex.Report.Error("Application still reports busy state after exceeding the allotted time (maxLoopDuration)");
}
}
Can anyone help me with this?

Thank you!