# File lib/capybara/driver/celerity_driver.rb, line 28 def select(option) node.select(option) rescue options = all(:xpath, "//option").map { |o| "'#{o.text}'" }.join(', ') raise Capybara::OptionNotFound, "No such option '#{option}' in this select box. Available options: #{options}" end