Outlook controls lose focus : Automation API

Outlook controls lose focus

Class library usage, coding and language questions.

Outlook controls lose focus

Postby balajichandan » Tue May 12, 2009 7: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()
balajichandan
 
Posts: 24
Joined: Tue Apr 14, 2009 1:29 pm

Postby Support Team » Wed May 13, 2009 6: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.

Jenö
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests

cron