Hi,
I'm new to Ranorex, currently evaluating if it would suit our needs to automate some tests in Outlook.
What I would like to do is open outlook, select a mailbox (from potentially multiple) and iterate through its folders, checking every mail in them - comparing mail content to a previously saved one.
I managed to get control for the folder tree and that works fine but I can't access the supergrid where I could select the mails. It shows up as Element 4704 in the Ranorex Spy, with no accessable elements/content
I have similar issues with the preview pane in outlook 2007 (2003 works ok) (_Wwg element)
Is there no alternative solution but mouse movement and relative coordinates?
Thanks!
Automating Outlook
Re: Automating Outlook
hiya
what "flavor" does it come up as "win32" ?
Cheers
what "flavor" does it come up as "win32" ?
Cheers
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Automating Outlook
Hi,
the problem you described is known by our Developement Team, but at the current version there is no way to get the SUPERGRID cells of Outlook, because it's identified as a single element.
But you can try this with image based recording or static mouse movements.
Regards,
Peter
Ranorex Support Team
the problem you described is known by our Developement Team, but at the current version there is no way to get the SUPERGRID cells of Outlook, because it's identified as a single element.
But you can try this with image based recording or static mouse movements.
Regards,
Peter
Ranorex Support Team
Re: Automating Outlook
Hi,
The problem with the static mouse movement is, that I have no means to determine the height of a cell in pixels - it can change based on the system I'm using (and probably resolution and things like that)
We had an idea of taking a screenshot of the element, than move the selection down to the next mail and take another screenshot. Is there any way of determining the height of the pixel difference between these two captures?
Thanks
The problem with the static mouse movement is, that I have no means to determine the height of a cell in pixels - it can change based on the system I'm using (and probably resolution and things like that)
We had an idea of taking a screenshot of the element, than move the selection down to the next mail and take another screenshot. Is there any way of determining the height of the pixel difference between these two captures?
Thanks
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Automating Outlook
Hi,
Why you are not using the keyboard actions something like:
Click the first item of the Inboxlist then go one item down. And save the content of the selected mail using the clipboard. Just select the whole text using the "Ctrl+A" shortcut, and copy everything with the "Ctrl+C" keyboard shortcut. And to click throw all items just code a "for" like
Peter
Ranorex Support Team
Why you are not using the keyboard actions something like:
Click the first item of the Inboxlist then go one item down. And save the content of the selected mail using the clipboard. Just select the whole text using the "Ctrl+A" shortcut, and copy everything with the "Ctrl+C" keyboard shortcut. And to click throw all items just code a "for" like
for (int i = 0; i < index; i++) { Keyboard.Press(Keys.Down); }Regards,
Peter
Ranorex Support Team
Re: Automating Outlook
Hi,
The problem with that is that I have to test the mouse and keyboard action separately - the test is for an outlook add-in and I have to make sure that it loads the e-mail correctly in both ways
In any case, mouse movement doesn't seem to work on a virtual machine properly for some reason (sometimes does, sometimes doesn't) so I think I'll have to postpone this for a while
The problem with that is that I have to test the mouse and keyboard action separately - the test is for an outlook add-in and I have to make sure that it loads the e-mail correctly in both ways
In any case, mouse movement doesn't seem to work on a virtual machine properly for some reason (sometimes does, sometimes doesn't) so I think I'll have to postpone this for a while
Re: Automating Outlook
Are there any news on this topic?
I'd like to use Ranorex 4.0.5 to select a specific E-Mail in Outlook 2010. I then also would like to validate the text of an email, but at the moment it doesn't seem to be possible to get the content of an email in ranorex to validate it.
I'd like to use Ranorex 4.0.5 to select a specific E-Mail in Outlook 2010. I then also would like to validate the text of an email, but at the moment it doesn't seem to be possible to get the content of an email in ranorex to validate it.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Automating Outlook
Hi,
Could you please post a Ranorex snapshot of the content of the email?
Following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
If you track (with Ranorex Spy) the content of the email you should see an element named "element[@class='_WwB']" and if you expand the node you should see an element named "worddoc[@name='Document209']". This element/class name has to be added to the GDI capture list in order to enable Ranorex to track the content of the email.
After you added it you should be able to see the RawText elements in Spy.
Regards,
Markus
Could you please post a Ranorex snapshot of the content of the email?
Following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
If you track (with Ranorex Spy) the content of the email you should see an element named "element[@class='_WwB']" and if you expand the node you should see an element named "worddoc[@name='Document209']". This element/class name has to be added to the GDI capture list in order to enable Ranorex to track the content of the email.
After you added it you should be able to see the RawText elements in Spy.
Regards,
Markus
Re: Automating Outlook
Thanks for your reply, with the GDI Capturing I'm able to get the (visible) text of the E-Mail.
Re: Automating Outlook
Hello,
I can't get the content of a mail in outlook 2013. I also activated GDI Capture List, but there is no content as rawtext?
I can't get the content of a mail in outlook 2013. I also activated GDI Capture List, but there is no content as rawtext?
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Automating Outlook
Hi,
Thanks for sending us the snapshot!
Unfortunately not all versions of Outlook are supported equally well.
Currently you need to use a workaround to be able to identify the content of an email in Outlook 2013.
You can for instance use image search, you could also copy and paste the text to another editor which can be accessed with Ranorex or even better you could copy the text to clipboard. You can get the text of the current email item by copying to the clipboard and getting the text from there by using the following method:
Regards,
Markus
Thanks for sending us the snapshot!
Unfortunately not all versions of Outlook are supported equally well.
Currently you need to use a workaround to be able to identify the content of an email in Outlook 2013.
You can for instance use image search, you could also copy and paste the text to another editor which can be accessed with Ranorex or even better you could copy the text to clipboard. You can get the text of the current email item by copying to the clipboard and getting the text from there by using the following method:
String content = System.Windows.Forms.Clipboard.GetText();Thanks for your understanding!
Regards,
Markus