It's not a Watir issue. It's about use of Gmail gem on ruby script. I think
you could try something like this:
email = gmail.inbox.find(*:unread, :from => "no reply registration email"*).
*label("Confirm Verification")*
email_text = email.message.html_part.body.to_s
url_start = email_text.index('<a href="') + 9
url_stop = email_text.index('>https:') - 2
url = email_text.slice(url_start..url_stop)
Cause I think you are not getting the message body which has the url you
need.
Hope it help!
Roman
El miércoles, 10 de julio de 2013 07:12:02 UTC-3, maulik goswami escribió:
>
> I am new to Watir.
>
> As a part of my registration script i need to access the *Gmail* and need
> to click on verification link to move further with the steps of
> registration.
>
> So how can i achieve it ?
>
> I've installed ruby *Gmail* gem and also made a sample script but it only
> goes to *Gmail* website after that script stops and returns the null
> value.
>
>
> Thanks in advance.
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.