Outlook controls lose focus

Class library usage, coding and language questions.
Posts: 24
Joined: Tue Apr 14, 2009 12:29 pm

Outlook controls lose focus

Post by balajichandan » Tue May 12, 2009 6:18 am

I am Automating MS Outlook using Ranorex 1.5. When I perform a search, the results appear in supergrid, i try to select the results in supergrid and perform operations using context menu etc.
The problem here is when I try the test case individually everything goes fine. But when I run a batch of test cases, when i do search and focus on search results in supergrid, focus is lost.
This happens in few test cases when i run a batch of 180+ test cases

To focus on supergrid, we do control.focus()

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

Post by Support Team » Wed May 13, 2009 5:27 pm

This can be a timing issue. The tested application runs in an other process, so if your machine is busy it can take more time to create a control or open a menu.

Please try to wait a little bit before setting the focus.

Ranorex Team