lib/iemodal.rb in iemodal-0.0.2 vs lib/iemodal.rb in iemodal-0.0.4

- old
+ new

@@ -33,10 +33,10 @@ driver.switch_to.window modal end def wait_for_new_handle(original_handles, driver) handles = nil - wait = Selenium::WebDriver::Wait.new + wait = Selenium::WebDriver::Wait.new(:timeout => 10) wait.until do handles = driver.window_handles handles.size == original_handles.size + 1 end handles