Added error handling to try/catch block.

This commit is contained in:
Jack Walker
2020-04-30 12:07:10 +10:00
parent 66868e748d
commit 3e6b75882e
2 changed files with 4 additions and 0 deletions

View File

@@ -94,6 +94,8 @@ RSpec.describe 'AutoRunEngine Test', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
sleep 3
# 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}

View File

@@ -91,6 +91,8 @@ RSpec.describe 'Browser Details Handler', :run_on_browserstack => true do
@driver.navigate.to "#{VICTIM_URL}"
sleep 3
# 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}