Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use selenium-client in tests #12

Open
tauboy opened this issue Mar 10, 2010 · 0 comments
Open

Use selenium-client in tests #12

tauboy opened this issue Mar 10, 2010 · 0 comments

Comments

@tauboy
Copy link

tauboy commented Mar 10, 2010

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant