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

Bret Pettichord bret at pettichord.com
Sun Oct 1 14:10:13 EDT 2006


Chris McMahon wrote:
>
>     Looking at the freetextbox, it appears that one problem you are
>     probably
>     running into is that Watir does not currently support accessing
>     iframes
>     by id. I think this would take me an hour or so to add. It would be
>     particularly easy if someone would create a failing unit test first.
>
> I was going to do this (it's either that or clean my house), but 
> there's already a frames test by id in 
> C:\ruby\lib\ruby\gems\1.8\gems\watir- 1.5.0.945\unittests\frame_test.rb:
>
>     def test_frame_by_id
>         assert_raises(UnknownFrameException) { $ie.frame(:id , 
> "missingFrame").button(:id, "b2").enabled?  } 
>         assert($ie.frame(:id, 'first_frame').button(:id, "b2").enabled?)
>     end
>
> Something funny seems to be going on with :id values. 
That test is for a *FRAME* not an *IFRAME*. I remember adding the code 
to add the ability to access frames by ID over a year ago, for a mutual 
client in Madison. When i added that, i also added a comment saying 
"Does not work for IFRAMES". I don't recall the details regarding what 
exactly would be needed to make this work.

Bret


More information about the Wtr-general mailing list