How to focus on an invisible treeitem on Outlook Navigation

Ask general questions here.
cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

How to focus on an invisible treeitem on Outlook Navigation

Post by cancerion » Mon Nov 09, 2009 12:52 pm

Hi,

I am using Ranorex 2.1.3 I have several folders in my Outlook navigation pane.Ranorex is able to identify the folders which are even not visible.
But I want to make them visible.

Is there any API which can traverse and make that folder node visible and selected?

EnsureVisible () doesn’t work for me.

If possible please give small sample snippets.

Thanks,
Sachin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to focus on an invisible treeitem on Outlook Navigation

Post by Support Team » Tue Nov 10, 2009 9:00 am

Hi cancerion!
Calling the following methods works for me in Outlook 2007:

// sample code
TreeItem pathToYourOutlookFolderItem = "/form/.../treeitem";
pathToYourOutlookFolderItem.EnsureVisible();
pathToYourOutlookFolderItem.Select();
An other choice is to use Keyboard action to scroll to the element until the treeitem is getting visible.

Best regards,
Christian
Ranorex Support Team
.
Image

cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

Re: How to focus on an invisible treeitem on Outlook Navigation

Post by cancerion » Fri Mar 12, 2010 7:05 am

Hi,

Given snippet is working for Office 2007 for me , But Ensurevisible() doesn't work for Office 2003.And select() throw exception in Office 2003.

Thanks,
Sachin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to focus on an invisible treeitem on Outlook Navigation

Post by Support Team » Fri Mar 12, 2010 11:06 am

Hi Sachin,

I've tried it too, but the problem is that Microsoft doesn't support the Select() mode or Focus() for OUTLOOK 2003.I already tried to set the TreeItme.Selected to true, also doesn't work. I think you must find a way with a keyboardpress or scroll down with the scrollbar while the item gets visible true.

Regards,
Peter
Ranorex Support Team
.
Image