Using capybara 1.0.0 and selenium-webdriver 0.2.0 and in a test I have something like the following to select from a dropdown.
select 'Food & Dining', :from => 'category_id'
The test passes but I get the following complaint:
Selenium::WebDriver::Element#select is deprecated. Please use Selenium::WebDriver::Element#click ...
I’ve searched the web, the documents are sparse, anyone know how to use click to select an option of a select element?
for those of you that are still having trouble with this, you may simply use the latest capybara from the master branch which should fix everything including recent issues with Launchy.
Just change:
to
then
and you’re good ^_^