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:/
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
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/'
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
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