You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if you can help here so feel free to tell me to go away, but as I'm still trying to learn ruby I kind of thought I'd ask on here
currently I'm trying to create some cucumber-nagios feature tests that need to use various selenium features (waiting for a javascript to display test that sort of thing)
from my reading it looks like I need to define the selenium_javascript_framework in my env.rb
something like:-
Webrat.configure do |config|
config.mode = :selenium
config.selenium_javascript_framework = :jquery
end
adding this causes cucumber-nagios to error so going back to some research it looked like I need to use the selenium-client gem, so I've added gem "selenium-client", "1.2.18" to the GemFile and done a new gem bundle
I've also added a require 'selenium-client' to the env.rb
but I still get errors saying webrat doesn't have that method
undefined method `selenium_javascript_framework=' for #<Webrat::Configuration:0xb79c7540> (NoMethodError)
/home/cucumber/NetBeansProjects/Cucumber/test/cucumber/nagios/features/support/env.rb:15
.......
so I'm guessing I need to tell the bundled version of Webrat to use the methods in selenium-client, but I don't know how to do that so can anyone help?
cheers
Mike
The text was updated successfully, but these errors were encountered:
hi chaps
I'm not sure if you can help here so feel free to tell me to go away, but as I'm still trying to learn ruby I kind of thought I'd ask on here
currently I'm trying to create some cucumber-nagios feature tests that need to use various selenium features (waiting for a javascript to display test that sort of thing)
from my reading it looks like I need to define the selenium_javascript_framework in my env.rb
something like:-
Webrat.configure do |config|
config.mode = :selenium
config.selenium_javascript_framework = :jquery
end
adding this causes cucumber-nagios to error so going back to some research it looked like I need to use the selenium-client gem, so I've added gem "selenium-client", "1.2.18" to the GemFile and done a new gem bundle
I've also added a require 'selenium-client' to the env.rb
but I still get errors saying webrat doesn't have that method
so I'm guessing I need to tell the bundled version of Webrat to use the methods in selenium-client, but I don't know how to do that so can anyone help?
cheers
Mike
The text was updated successfully, but these errors were encountered: