From 996eedb0d2311be01e227cf11d319e78524e7e1b Mon Sep 17 00:00:00 2001 From: Noah Davis Date: Fri, 23 Jan 2009 17:08:04 -0500 Subject: [PATCH] Switch to using selenium.click instead of .check when checking a checkbox --- History.txt | 2 ++ lib/webrat/selenium/selenium_session.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/History.txt b/History.txt index 82c2a6b..49fcc1a 100644 --- a/History.txt +++ b/History.txt @@ -7,6 +7,8 @@ * 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 * Ensure the previous pages params aren't passed through redirect * Labels should only search for fields within the current scope (Kyle Hargraves) diff --git a/lib/webrat/selenium/selenium_session.rb b/lib/webrat/selenium/selenium_session.rb index 90fdf39..419a49d 100644 --- a/lib/webrat/selenium/selenium_session.rb +++ b/lib/webrat/selenium/selenium_session.rb @@ -111,7 +111,7 @@ module Webrat def check(label_text) locator = "webrat=#{label_text}" selenium.wait_for_element locator, 5 - selenium.check locator + selenium.click locator end webrat_deprecate :checks, :check