diff --git a/spec/beef/core/main/autorun_engine/autorun_engine_spec.rb b/spec/beef/core/main/autorun_engine/autorun_engine_spec.rb index a0a9b94c5..08d0cbaef 100644 --- a/spec/beef/core/main/autorun_engine/autorun_engine_spec.rb +++ b/spec/beef/core/main/autorun_engine/autorun_engine_spec.rb @@ -92,7 +92,7 @@ RSpec.describe 'AutoRunEngine Test', :run_on_browserstack => true do print_info 'Hooking a new victim, waiting a few seconds...' wait = Selenium::WebDriver::Wait.new(:timeout => 30) # seconds - sleep 1 until wait.until { @driver.navigate.to "#{VICTIM_URL}" } + sleep 1 until @driver.navigate.to "#{VICTIM_URL}" # Give time for browser hook to occur sleep 1 until wait.until { @driver.execute_script("return window.beef.session.get_hook_session_id().length") > 0} diff --git a/spec/beef/core/main/handlers/browser_details_handler_spec.rb b/spec/beef/core/main/handlers/browser_details_handler_spec.rb index aaedcea52..4a8b96634 100644 --- a/spec/beef/core/main/handlers/browser_details_handler_spec.rb +++ b/spec/beef/core/main/handlers/browser_details_handler_spec.rb @@ -89,7 +89,7 @@ RSpec.describe 'Browser Details Handler', :run_on_browserstack => true do print_info 'Hooking a new victim, waiting a few seconds...' wait = Selenium::WebDriver::Wait.new(:timeout => 30) # seconds - sleep 1 until wait.until { @driver.navigate.to "#{VICTIM_URL}" } + sleep 1 until @driver.navigate.to "#{VICTIM_URL}" # Give time for browser hook to occur sleep 1 until wait.until { @driver.execute_script("return window.beef.session.get_hook_session_id().length") > 0} diff --git a/spec/beef/modules/debug/test_beef_debugs_spec.rb b/spec/beef/modules/debug/test_beef_debugs_spec.rb index bea3a46f5..e4c6b2037 100644 --- a/spec/beef/modules/debug/test_beef_debugs_spec.rb +++ b/spec/beef/modules/debug/test_beef_debugs_spec.rb @@ -88,7 +88,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do print_info 'Hooking a new victim, waiting a few seconds...' wait = Selenium::WebDriver::Wait.new(:timeout => 30) # seconds - sleep 1 until wait.until { @driver.navigate.to "#{VICTIM_URL}" } + sleep 1 until @driver.navigate.to "#{VICTIM_URL}" # Give time for browser hook to occur sleep 1 until wait.until { @driver.execute_script("return window.beef.session.get_hook_session_id().length") > 0}