Merge branch 'master' of git@github.com:brynary/webrat

This commit is contained in:
Mike Gaffney 2009-01-23 22:35:46 -06:00
commit f4f0e3b6a7
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@
* Bug fixes * Bug fixes
* Switch to using selenium.click instead of .check when checking a checkbox
(Noah Davis)
* Setup deprecated writers for the selenium_environment= and selenium_port= config * Setup deprecated writers for the selenium_environment= and selenium_port= config
* Ensure the previous pages params aren't passed through redirect * Ensure the previous pages params aren't passed through redirect
* Labels should only search for fields within the current scope (Kyle Hargraves) * Labels should only search for fields within the current scope (Kyle Hargraves)

View File

@ -111,7 +111,7 @@ module Webrat
def check(label_text) def check(label_text)
locator = "webrat=#{label_text}" locator = "webrat=#{label_text}"
selenium.wait_for_element locator, 5 selenium.wait_for_element locator, 5
selenium.check locator selenium.click locator
end end
webrat_deprecate :checks, :check webrat_deprecate :checks, :check