lib/watir.rb in watir-6.19.1 vs lib/watir.rb in watir-7.0.0.beta1

- old
+ new

@@ -1,10 +1,9 @@ require 'selenium-webdriver' require 'time' require 'watir/scroll' -require 'watir/legacy_wait' require 'watir/wait' require 'watir/exception' require 'watir/window' require 'watir/window_collection' require 'watir/has_window' @@ -22,54 +21,11 @@ require 'watir/after_hooks' require 'watir/logger' require 'watir/version' module Watir - @relaxed_locate = true - class << self - attr_writer :relaxed_locate, :always_locate, :default_timeout, :prefer_css - - # - # Whether or not Watir should wait for an element to be found or present - # before taking an action. - # Defaults to true. - # - - def relaxed_locate? - @relaxed_locate - end - - # - # Whether or not Watir should re-locate a stale Element on use. - # - - def always_locate? - always_locate_message - true - end - - def always_locate_message - msg = 'Watir#always_locate' - repl_msg = 'Element#stale? or Element#wait_until(&:stale?) if needed for flow control' - Watir.logger.deprecate msg, repl_msg, ids: [:always_locate] - end - - # - # Whether or not Watir should prefer CSS when translating the Watir selector to Selenium. - # - - def prefer_css? - prefer_css_message - false - end - - def prefer_css_message - msg = 'Watir#prefer_css' - repl_msg = 'watir_css gem - https://github.com/watir/watir_css' - - Watir.logger.deprecate msg, repl_msg, ids: [:prefer_css] - end + attr_writer :default_timeout # # Default wait time for wait methods. #