Switch to using selenium.click instead of .check when checking a checkbox

This commit is contained in:
Noah Davis 2009-01-23 17:08:04 -05:00
parent 0272e81847
commit 996eedb0d2
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