lib/pagetience.rb in pagetience-0.3.1 vs lib/pagetience.rb in pagetience-0.3.2
- old
+ new
@@ -38,9 +38,12 @@
end
def initialize(browser, *args)
@browser = browser
+ current_page = self
+ @browser.class.send(:define_method, :current_page) { current_page }
+
determine_platform
@element_platform.platform_initialize args
@loaded = false
@_waiting_timeout = _waiting_timeout || 30