diff --git a/lib/capybara/selector.rb b/lib/capybara/selector.rb index c674deeb..10da544c 100644 --- a/lib/capybara/selector.rb +++ b/lib/capybara/selector.rb @@ -88,7 +88,7 @@ Capybara.add_selector(:xpath) do end Capybara.add_selector(:css) do - xpath { |css| XPath.css(css) } + css { |css| css } end Capybara.add_selector(:id) do