lib/watir/legacy_wait.rb in watir-6.5.0 vs lib/watir/legacy_wait.rb in watir-6.6.0
- old
+ new
@@ -81,11 +81,11 @@
#
def when_present(timeout = nil)
warning = '#when_present has been deprecated and is unlikely to be needed; '
warning << 'replace this with #wait_until_present if a wait is still needed'
- warn warning
+ Watir.logger.warn warning
timeout ||= Watir.default_timeout
message = "waiting for #{selector_string} to become present"
if block_given?
@@ -107,10 +107,10 @@
# @see Watir::Wait
# @see Watir::Element#enabled?
#
def when_enabled(timeout = nil)
- warn '#when_enabled has been deprecated and is unlikely to be needed'
+ Watir.logger.warn '#when_enabled has been deprecated and is unlikely to be needed'
timeout ||= Watir.default_timeout
message = "waiting for #{selector_string} to become enabled"
if block_given?