ImapLibrary:Open Link From Email keyword giving error

657 views
Skip to first unread message

RohithSun

unread,
Feb 20, 2016, 8:16:03 AM2/20/16
to robotframework-users
Hi,

Please help on resolving below issue,

Test case:

*** Settings ***
Library ImapLibrary


*** Test Cases ***
Test Email
open mailbox server=imap.mail.yahoo.com user=rohith****@ymail.com password=*******
${LATEST}= wait for email fromEmail=rohith.n@***.com timeout=150
${link}= get links from email ${LATEST}
log to console ${link}
${emailBody} get email body ${LATEST}
Should Contain ${emailBody} Your mailbox is almost full.
open link from email ${emailBody}
close mailbox

Error:

Test Email                                                            | FAIL |
error: FETCH command error: BAD ['[CLIENTBUG] FETCH Command arguments invalid']


The above error is for "open link from email ${emailBody}", not able to open the link/url present in the email body,



dm08

unread,
Feb 20, 2016, 10:44:42 AM2/20/16
to rohith...@gmail.com, robotframework-users
Hi,

Can you log and see what is in the ${emailBody}  variable it seems like there is not link/url 

Thanks,
Dmitriy


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

RohithSun

unread,
Feb 20, 2016, 10:58:59 AM2/20/16
to robotframework-users
I'm able to fetch the link from email body and log it as well, problem is in opening the link.

RohithSun

unread,
Feb 22, 2016, 11:04:26 PM2/22/16
to robotframework-users
Any solution for this?


On Saturday, February 20, 2016 at 6:46:03 PM UTC+5:30, RohithSun wrote:

Andrea Bisello

unread,
Feb 23, 2016, 2:39:47 AM2/23/16
to robotframework-users
Maybe you can also include selenium2library and use

|  Open Browser  | link |    firefox

in order to open the link?

RohithSun

unread,
Feb 23, 2016, 7:47:55 AM2/23/16
to robotframework-users
But my test case is to click on the link from the email and verify further, is it not possible now with ImapLibrary?
Has anyone tried clicking links in the email body?


On Saturday, February 20, 2016 at 6:46:03 PM UTC+5:30, RohithSun wrote:

Anil Shrestha

unread,
Apr 2, 2019, 7:55:37 AM4/2/19
to robotframework-users
i am also facing the same problem. Clicking on the verifcation link having token could not get the correct link.
Reply all
Reply to author
Forward
0 new messages