[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Parag Dave
Hi Here is the error list ./test8.rb:12: undefined method `text_field' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/gems/1.8/gems/ rspec-1.2.9/lib/spec/example/example_group_methods.rb:183:in `module_eval' from c:/

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Michael
Fix the indenting of your code and it should become clear: require 'rubygems' require 'watir-webdriver' describe 'MySite' do before(:all) { @browser = Watir::Browser.new :firefox } it 'contains Google' do @browser.goto 'http://google.com/' @browser.text.should include

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Michael
Sorry for the extra email - but easier to see properly indented (with the tabs converted to spaces): require 'rubygems' require 'watir-webdriver' describe 'MySite' do before(:all) { @browser = Watir::Browser.new :firefox } it 'contains Google' do @browser.goto 'http://google.com/'

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-30 Thread Parag Dave
Sorry Michael Next time i will keep in mind that to post formatted code. By the way the code that you post that also did not work for me. ./test8.rb:31: undefined local variable or method `have' for Spec::Examor) from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/ examplal' from

[wtr-general] Re: Need help with Rspec and Watir Webdriver

2011-06-29 Thread Dave McNulla
Can you post the error messages so we can see what problems there were? Dave -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general