[wtr-general] Re: Error in running script

2009-07-03 Thread Jared Quinert

John Kolokotronis wrote:
> You'll need the require statement, don't remove it.
>   

Yes, quite right.  Was thinking of 'include'.  The perils of late-night 
posting.

Jared

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Error in running script

2009-07-03 Thread John Kolokotronis

You'll need the require statement, don't remove it.

Try updating your gem system with:

gem update --system

And failing that, try updating windows-pr with:

gem update windows-pr

I currently have version 0.9.6 installed and working fine with watir
1.6.2.

Regards,

John
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Error in running script

2009-07-03 Thread Jared Quinert

Try removing the require statement?  The new version seems to behave 
differently to previous ones.

Jared
http://www.software-testing.com.au/blog/

Yuvraj wrote:
> 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
-~--~~~~--~~--~--~---