I need to automate a process where my main application opens Outlook, creates an email, fills out some fields, and sends out the email. At times, each email is mapped to another “class” of Outlook objects, in which, no controls can be located during playback. And even when all controls appear to be mapped to the same class, the panelMessage never seems to be identified. Is there a setting somewhere that needs to be adjusted?
I’m using Outlook 365 with TestComplete 15.73.16.7 x64.
It has been my experience that automating Microsoft apps or any apps that were not built by your team is a challenge. Have you looked into the settings in Tools...Project Properties\Open Applications\MSAA?
There are quite a few advanced settings in ‘Open Applications’ as well as ‘Object Mapping’ you may find useful. I can’t speak to your specific situation but I have used MSAA to expose controls buried in Microsoft tree objects that were otherwise not accessible (or just flakey in automation).
… If you find my posts helpful drop me a like! Be sure to mark the best answer if you get one to help others out and to credit the one who helped you.
Maybe research for another approach than getting too deep into Outlook- sent email using another solution? move emails in folders in separate step not using Outlook?
I am not trying to test Outlook independently. I am testing an application, which in turn uses Outlook to create an email. This entire of process of email creation from my application is what I would like to have automated. Sorry for not being clear.