[Wtr-general] Inputing text into a <textarea> that is containedwithin a <div>

Paul Rogers paul.rogers at shaw.ca
Mon Oct 2 14:38:53 EDT 2006


shouldnt it be 

<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   #<-----note quotes

and isnt .exists a better test here?

-------------- next part --------------
>
> > 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/c209d02d/attachment-0001.html 
-------------- next part --------------
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


More information about the Wtr-general mailing list