Hi John,

The same code is working in my machine. can you just tell me which version of the WET and Watir your using?

Thanks
Satti

John Hobbs wrote:

WATIR Code:
    ie = IE.attach(:url , /MY.jsp/ )
    f = ie.frame(:name, "MYFrame")
    puts f.html

WET Code:
    b = Browser("url:=/MY.jsp/")
    f = b.Frame("name:=MYFrame")
    puts f.html

In both cases, I have already logged in to the system and navigated to MY.jsp. When I run the Watir code, the html for "MYFrame" is displayed.
When I run the WET code, I get the following error message:

C:\WET/qantom/webobjects/WebFrame.rb:44:in `document': undefined
method `document' for nil:NilClass (NoMethodError)
       from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1465:in `html'
       from C:/RubyCode/WetTest/FrameTest.rb:24

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


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

Reply via email to