I am using Ruby 1.8.6, Watir 1.6.6, and RSpec 1.3.0. When I run the following script, it "terminates" (term given in EclipsePDT IDE) but no error is listed. Same when I run it from the c-prompt on windows, except no "terminate". The browser never opens. Anybody got a clue? It runs OK if I take off the describe, it, and end lines.
describe 'FaceBook' do
before :all do
@b = Watir::Browser.new
@b = Watir::IE.start('http://www.facebook.com')
end
it 'Default Page links' do
@b.link(:class, 'fbxWelcomeBoxName').text.should == 'Dave McNulla'
@b.link(:href, 'http://www.facebook.com/?ref=home').text.should == 'Home'
@b.link(:href, 'http://www.facebook.com/dave.mcnulla').text.should == 'Profile'
end
it 'Home Page links' do
@b.link(:href, 'http://www.facebook.com/?ref=home').click
@b.link(:href, 'http://www.facebook.com/?ref=home').text.should == 'Home'
@b.link(:href, 'http://www.facebook.com/dave.mcnulla').text.should == 'Profile'
end
it 'Profile Page links' do
@b.link(:text, 'Profile').click
@b.link(:href, 'http://www.facebook.com/?ref=home').text.should == 'Home'
@b.link(:href, 'http://www.facebook.com/dave.mcnulla').text.should == 'Profile'
end
after :all do
@b.close
end
end