Adding rescue from Webrat::TimeoutError in selenium matchers which allows NegativeMatchers to behave correctly
This commit is contained in:
parent
18fa3ab11c
commit
f956bea7dd
|
@ -8,6 +8,7 @@
|
|||
|
||||
* Bug fixes
|
||||
|
||||
* rescue from Webrat::TimeoutError in selenium matchers which allows NegativeMatchers to behave correctly (Noah Davis)
|
||||
* Switch to using selenium.click instead of .check when checking a checkbox
|
||||
(Noah Davis)
|
||||
* Create tmp/pids directory if directory does not exist. (Amos King and Mike Gaffney)
|
||||
|
|
|
@ -16,6 +16,8 @@ module Webrat
|
|||
response.session.wait_for do
|
||||
response.selenium.is_text_present(text_finder)
|
||||
end
|
||||
rescue Webrat::TimeoutError
|
||||
false
|
||||
end
|
||||
|
||||
# ==== Returns
|
||||
|
|
|
@ -10,6 +10,8 @@ module Webrat
|
|||
response.session.wait_for do
|
||||
response.selenium.is_element_present("css=#{@expected}")
|
||||
end
|
||||
rescue Webrat::TimeoutError
|
||||
false
|
||||
end
|
||||
|
||||
# ==== Returns
|
||||
|
|
|
@ -10,6 +10,8 @@ module Webrat
|
|||
response.session.wait_for do
|
||||
response.selenium.is_element_present("xpath=#{@expected}")
|
||||
end
|
||||
rescue Webrat::TimeoutError
|
||||
false
|
||||
end
|
||||
|
||||
# ==== Returns
|
||||
|
|
Loading…
Reference in New Issue