Added error handling to try/catch block.

This commit is contained in:
Jack Walker
2020-04-30 11:16:07 +10:00
parent 8e1edf5cea
commit 66868e748d

View File

@@ -90,6 +90,8 @@ RSpec.describe 'BeEF Debug Command Modules:', :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}