Hi,

I need to verify the Frame title and Content inside the frame. I tried by using 
this code

require 'watir'
include Watir
require 'test/unit'
class TC_title < Test::Unit::TestCase
        def test_title
        ie = IE.new
        ie.goto(https:/xxxx/login.aspx')
        ie.link(:url, https//xxxx/FaqPage.aspx').click
        ie = Watir::IE.attach(:url, https//xxxx/FaqPage.aspx'/FaqPage.aspx')
        puts ie.frame(:index, 2).title()
        end
end

I am getting the following error...
>ruby test.rb
Loaded suite test
Started
E
Finished in 6.562 seconds.

  1) Error:
test_recorded(TC_recorded):
NoMethodError: undefined method `document' for nil:NilClass
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1237:in `title'
    test.rb:10:in `test_recorded'

1 tests, 0 assertions, 0 failures, 1 errors
>Exit code: 1


Please let me know how to get and verify the frame title .

Thanks in advance

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

Reply via email to