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
How to focus on an invisible treeitem on Outlook Navigation
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to focus on an invisible treeitem on Outlook Navigation
Hi cancerion!
Calling the following methods works for me in Outlook 2007:
Best regards,
Christian
Ranorex Support Team
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
Re: How to focus on an invisible treeitem on Outlook Navigation
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to focus on an invisible treeitem on Outlook Navigation
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
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