Cucumber Failing with Nokogiri
- by Paul
I just started using Cucumber and in the simplest of scenarios I throw the following error:
undefined method has_key?' for #<Nokogiri::XML::Element:0x10677a400> (NoMethodError)
./features/step_definitions/web_steps.rb:36:in/^(?:|I )fill in "([^"])" with "([^"])"$/'
features/authentication.feature:9:in `When I fill in "user_name" with "Joe User"'
The Scenario is as follows...
Scenario: Signup
Given I go to the signup page
When I fill in "user_name" with "Joe User"
Is this a problem in the Scenario, Cucumber, or Nokogiri? Any Solutions?