A couple of things to understand:
1. The Ranorex progress display in the bottom right corner of the screen only displays the LAST Report.Log entry that was executed. If it isn't updating then your code is stuck somewhere between the Report.Log it is displaying and the next one, most likely on the search.
2. The Exists() method will still try to find the object using the 'Effective Timeout' of the element, which is the cumulative timeouts of the element and all parent elements in the repository. So if your element has 3 parents and all 4 of the elements have a 30 sec timeout, then the Effective Timeout for that element is 2 min.
My suggestion would be to add a Report.Log() line before each user-code line that might be causing the issue. The last Report line that runs is the one right before the code with the issue.
In your case it could look like this:
Code: Select all
Report.Log(ReportLevel.Info, "USER", "Checking for welcome message and clicking OK if it exists.");
if (rep.myapp.welcomemessage.exists()) rep.myapp.welcomemessage.buttonok.click();
You might also want to change the if to a multi-line code block so you can put another Report.Log line inside it with the click action, just in case the issue is with clicking the button.
Shortcuts usually aren't...