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.
- kavitharaj10 years agoNew Contributor
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?
- baxatob10 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
- 6 years ago
- 3 years ago
- 4 years ago
- 4 years ago
Recent Discussions
- 16 hours ago
- 16 hours ago
- 4 days ago