Topic: undefined local variable or method `selenium' for #<Cucumber::Rails::W

HI everyones,
   I search google to find out the way TO check alert (exist) and I found this function: selenium.is_alert_present.should be_true
I have this error when run cucumber to that line
undefined local variable or method `selenium' for #<Cucumber::Rails::World:0x0000000be03ed0> (NameError)
(I try to config follow http://pragdevnotes.com/2010/10/31/usin … -to-choose  I USE CAPYBARA)
I add some gem:
   gem 'selenium-client'
   gem 'selenium'
   gem 'selenium-webdriver'
And in env.rb :
   Capybara.default_driver = :selenium
   World(Capybara)

DO I MISS CONFIG SOMETHING??? HOW CAN I HAVE OBJECT selenium
THANKS VERY MUCH big_smile

Last edited by nobita175 (2012-02-02 00:22:07)