[Wtr-general] I am a newb
Paul Rogers
paul.rogers at shaw.ca
Fri Sep 1 14:44:09 EDT 2006
thats a link, so
ie.link(:id , "sessionDialogCancel" ).flash is what you need
----- Original Message -----
From: Chris McMahon
To: wtr-general at rubyforge.org
Sent: Friday, September 01, 2006 12:40 PM
Subject: Re: [Wtr-general] I am a newb
On 9/1/06, David <forum-watir-users at openqa.org> wrote:
I want to say thanks to everyone, I am trying to understand. With the $ie.button(:index, 2).click command how does it know that it is looking for Cancel. This is the html source I am trying to pull from:
<a class="right button" id="sessionDialogCancel" href="JavaScript:hideSessionDialog();">Cancel</a>
Try $ie.button(:id,"sessionDialogCancel").click
Also try using the "flash" method to see what's happening:
$ie.button(:index, 2).flash
$ie.button(:index, 3).flash
$ie.button(:index, 4).flash
$ie.button(:index, 5).flash
------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060901/df5e9ff7/attachment.html
More information about the Wtr-general
mailing list