lib/pagetience.rb in pagetience-0.2.0 vs lib/pagetience.rb in pagetience-0.2.1
- old
+ new
@@ -26,24 +26,23 @@
end
end
attr_accessor :_waiting_timeout, :_waiting_polling
- attr_reader :browser
- attr_reader :loaded
+ attr_reader :browser, :loaded
attr_reader :element_platform
attr_reader :_poller, :_required_elements, :_underlying_elements
def self.included(base)
base.extend ClassMethods
end
- def initialize(browser)
+ def initialize(browser, *args)
@browser = browser
determine_platform
- @element_platform.platform_initialize
+ @element_platform.platform_initialize args
@loaded = false
@_waiting_timeout = _waiting_timeout || 30
@_waiting_polling = _waiting_polling || 1