我根据这篇文章设置了 Cucumber+Webrat+Selenium 。但是,每当我运行我的服务器时,我都会收到: ERROR Server Exception: sessionId should not be null; 本次会议开始了吗?(Selenium::CommandError)
在 Google 上的两个小时对我来说并没有多大帮助。你能帮忙吗?谢谢!我正在 Mac OS X 10.6 上开发 Ruby 1.8.7 和 Rails 2.3.5。我在 test.rb 中安装的 gem 是:
config.gem "database_cleaner", :lib => false, :version => ">=0.5.0"
config.gem "rspec", :lib => false, :version => ">=1.2.2"
config.gem "rspec-rails", :lib => false, :version => ">=1.2.2"
config.gem "webrat", :lib => false, :version => ">=0.4.4"
config.gem "cucumber", :lib => false, :version => ">=0.3.0"
config.gem "thoughtbot-factory_girl", :lib => "factory_girl", :source => "http://gems.github.com"
config.gem "pickle", :lib => false, :version => ">= 0.1.21"
非常感谢你!