[Wtr-general] Inputing text into a <textarea> that is containedwithin a <div>
Chris McMahon
christopher.mcmahon at gmail.com
Mon Oct 2 12:18:57 EDT 2006
>
> > I was going to do this (it's either that or clean my house), but
> > there's already a frames test by id in
Now that I have a clean house...
Alter iframes_test.html like so:
<iframe src = iframeTest1.html name = senderFrame id = sf width = 300
height = 300>
now the test:
def test_iframes_id
#VALIDATE THAT WE CAN GET THERE AT ALL
x = $ie.frame(:index,1).button(:name,'sendIt').click
assert_equal("",x)
#VALIDATE THAT WE CAN GET THERE VIA id
x = $ie.frame(:id,sf).button(:name,'sendIt').click
assert_equal("",x)
end
produces
1) Error:
test_iframes_id(TC_show_frames):
NameError: undefined local variable or method `sf' for
#<TC_show_frames:0x2837320>
frame_test.rb:145:in `test_iframes_id'
It's a little different format, but it works nice. I like assert_equal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061002/18c128fb/attachment.html
More information about the Wtr-general
mailing list