Hi folks,

 

two weeks ago I send a bug to this mailing list about undefined method `document' for nil:NilClass => Error as you can see below, and no one could help me out.

 

I’ve found the solution. It’s quite simple. You can just launch the sentence written in Watir under your WET script.

 

This seems to be a specific WET bug. I think that maybe useful for any other WET bugs. You can go around the bug using Watir sentences, while a fix is found in WET.

 

I hope this could help to anyone.

 

Cheers

 

 

-----Mensaje original-----
De: Jesús JCE.
Collado Pérez
Enviado el: jueves, 13 de octubre de 20
05 18:21
Para: '[email protected]'
Asunto: undefined method `document' for nil:NilClass => Error

 

Hi folks,

 

I've found a weird error using WET and I'm afraid this may be a WET bug (I hope it's just my fault with code ;-) )

 

I'm trying to set either a text field and a checkbox that is found in a second level frame as following:

 

Browser("url:=http://server/app/principal.jsp").Frame("name:=frame1").Frame("name:=frame2").TextField("name:=testfield").set "Testing"

 

The focus move to the text field but it seems to fail when trying to write. This is what I get:

 

undefined method `document' for nil:NilClass => Error

 

This is really driving me crazy so I'll appreciate any kind of help with this issue and hope this help to more people.

 

Thanks in advance

 

 

Jesús Collado Pérez

Testing Engineer

Southern Star

 

[EMAIL PROTECTED]

Tel: 91 372 80 22

 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to