I have just installed watir 1.6.2 and ruby 1.8.6. I have written the
following code to check the content on web page.

require 'test/unit'
require 'watir'

class GoogleHomePage < Test::Unit::TestCase
  def test_there_should_be_text_About_Google
    browser = Watir::IE.start "http://www.google.com";
    assert(browser.pageContainsText("About Google"))
  end
end

After running the script, getting following error message>>

Error:
test_there_should_be_text_About_Google(GoogleHomePage):
NameError: uninitialized constant Windows::API::Error
    C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/
thread.rb:59
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/
process.rb:3
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-process.rb:
1
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:45
    test.rb:6:in `test_there_should_be_text_About_Google'

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

Please suggest solution for this issue.
Thanks,
Yuvraj



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to