lib/watirsplash/page/base.rb in watirsplash-2.4.1 vs lib/watirsplash/page/base.rb in watirsplash-2.4.2
- old
+ new
@@ -2,23 +2,27 @@
module Page
class Base
include SpecHelper
class << self
- @@url = "about:blank"
+ @url = "about:blank"
def url url
- @@url = url
+ @url = url
end
+ def _url
+ @url
+ end
+
end
def initialize(browser=nil)
if browser
@browser = browser
else
@browser = WatirSplash::Browser.exists? ? WatirSplash::Browser.current : (WatirSplash::Browser.current = WatirSplash::Browser.new)
- @browser.goto @@url
+ @browser.goto self.class._url
end
end
def redirect_to page, browser=nil
page.new browser || WatirSplash::Browser.current