lib/watirsplash/page/base.rb in watirsplash-2.3.2 vs lib/watirsplash/page/base.rb in watirsplash-2.4.0
- old
+ new
@@ -14,11 +14,10 @@
def initialize(browser=nil)
if browser
@browser = browser
else
- reuse_current = WatirSplash::Browser.current && WatirSplash::Browser.current.exists?
- @browser = reuse_current ? WatirSplash::Browser.current : (WatirSplash::Browser.current = WatirSplash::Browser.new)
+ @browser = WatirSplash::Browser.exists? ? WatirSplash::Browser.current : (WatirSplash::Browser.current = WatirSplash::Browser.new)
@browser.goto @@url
end
end
def redirect_to page, browser=nil