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" <[EMAIL PROTECTED]>
To: <wtr-general@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:'[EMAIL PROTECTED]'>xxx</a>
>
> Watir code so far:
>
> ie.link(:text, /xxx/).click
> ie1=IE.attach(:url, /????/)  <--- Need HELP here
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> 


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

Reply via email to