Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Created October 26, 2011 16:23
Show Gist options
  • Select an option

  • Save HeroicEric/1316893 to your computer and use it in GitHub Desktop.

Select an option

Save HeroicEric/1316893 to your computer and use it in GitHub Desktop.
Unable to find xpath .//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')][((./@id = 'textarea' or ./@name = 'textarea') or ./@id = //label[normalize-space(string(.)) = 'textarea']/@for)] | .//label[normalize-space(string(.)) = 'textarea']//.//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')] | .//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')][((./@id = 'textarea' or ./@name = 'textarea') or ./@id = //label[contains(normalize-space(string(.)), 'textarea')]/@for)] | .//label[contains(normalize-space(string(.)), 'textarea')]//.//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')] (Capybara::ElementNotFound)
(eval):2:in `find_field'
./features/step_definitions/web_steps.rb:151:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:150:in `/^the "([^\"]*)" field(?: within "([^\"]*)")? should contain "([^\"]*)"$/'
features/posts/manage_posts.feature:38:in `And the "textarea" field should contain "Sample Post 1 body"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment