[Wtr-general] How do I attach to a "mailto" window

Adam Reed areed at relocationcentral.com
Thu Jul 5 12:22:59 EDT 2007


Yep - if you really read your method, you're asking watir to attach an
IE instance itself to an MS Outlook window with the url of....there
won't be a url because it's an MS Outlook window.

The simplest solution I can think of without delving into AutoIT would
be to set your default mail client to gmail (using Gmail Notifier or
similar), or any other web-based mail client that supports being set as
the default.  Then you could continue to use Ruby/Watir for your
assertions.

Adam 

-----Original Message-----
From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Paul Rogers
Sent: Thursday, July 05, 2007 11:13 AM
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] How do I attach to a "mailto" window

watir doesnt support doing this itself. You could probably write
something to do this using auto-it. But an easier way is to probably
test it once manually, and then save the link details. and instead of
clicking the link, just make sure it hasnt changed from when you
manually tested it

Paul

----- Original Message -----
From: "marty" <forum-watir-users at openqa.org>
To: <wtr-general at rubyforge.org>
Sent: Thursday, July 05, 2007 8:25 AM
Subject: [Wtr-general] How do I attach to a "mailto" window


> In the HTML code I have a link with a href of mailto. When I click on
it 
> in Watir, it brings up a window for the email message. I would like to

> attach to that window just to verify that the link worked properly.
How do 
> I do this?
>
> Html code:
>
> <a href=mailto:'xxx at ncr.com'>xxx</a>
>
> Watir code so far:
>
> ie.link(:text, /xxx/).click
> ie1=IE.attach(:url, /????/)  <--- Need HELP here
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> 


_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


More information about the Wtr-general mailing list