Is there a way to get current imaplibrary instance from robot framework and pass to a separate python...
1
i am stuck in a testcase where i need to check that after performing an action, email is getting triggered, if yes then email has an attachment. for the first action i am using Wait For Email keyword of robotframework's imaplibrary library. now for the attachment part since there is no keyword for this purpose i have written a separate python function to which i am passing email_index as parameter written by Wait For Email keyword. after that it should walk through the email and fetch attachment. **robot file:** ${new_email}= Wait For Email sender=${sender_email} text=${expected_content} recipient=${recepient} timeout=70 ${file} get_attachments ${new_email} **python function** import imaplib import email # m is the email index passed from wait for email keyword def get_att