我正在使用带有ImapLibrary的Robot-framework来获取Outlook帐户中最新邮件的内容。我得到的错误是 -
**TypeError: 'NoneType' object has no attribute '__getitem__'**
有人可以帮帮我吗?
我的代码是 -
*** Settings ***
Library ImapLibrary
*** Test Cases ***
Email Verification
Open Mailbox host=outlook.office365.com user=myname@company.com password=secret
Get Email Body 1
Close Mailbox
答案 0 :(得分:-1)
尝试
Open Mailbox
host=imap-mail.outlook.com
user=myname@company.com
password=secret