Added error handling to try/catch block.
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user