Forum Discussion
Enable MSAA or UI Automation for Outlook (see the "Using Microsoft Active Accessibility" and "Using Microsoft UI Automation Technology" help topics) - this will allow you to access more objects, properties, and methods in Outlook's process.
If this doesn't help, you'll need to use coordinate-based clicks.
Hi
I am writing almost same kind of code to access outlook emails. But where I declare the outlook ole object, test complete fails as server execution failed. Its the very initial step in my script
I am using python
outlookapp = Sys.OleObject["Outlook.Application"]
Any help?
- baxatob9 years agoCommunity Hero
You can simply use one of the native python libraries to have a direct access to your email account (e.g. imaplib)
- kevin_kapell7 years agoFrequent Contributor
I found that I cannot make the connection if outlook is alreeady running. So I added the following before making the connection.
var OutLookProcess = Sys.WaitProcess("outlook",2000);
if(OutLookProcess.Exists)
{
OutLookProcess.Terminate();
aqUtils.Delay(2000);//Give time to close Outlook
}
else
{
Log.Event("Outlook does not appear to be running");
}
Related Content
- 2 years ago
- 2 years ago
- 6 years ago
- 3 years ago