diff --git a/lib/persistent_selenium/browser.rb b/lib/persistent_selenium/browser.rb index 1c68194..e89aeda 100644 --- a/lib/persistent_selenium/browser.rb +++ b/lib/persistent_selenium/browser.rb @@ -25,6 +25,8 @@ module PersistentSelenium end def set_app_host(host) + load_splash_page + @app_host = host end @@ -42,6 +44,10 @@ module PersistentSelenium # instead. end end + + GC.enable + GC.start + GC.disable end def starting_page