Missing wait definition specifically in websocket_hooked_browser_spec.rb

This commit is contained in:
Jack Walker
2020-05-18 17:03:58 +10:00
parent d43e0bafb4
commit 69998ee176

View File

@@ -80,8 +80,11 @@ RSpec.describe 'Browser hooking with Websockets', :run_on_browserstack => true d
:url => "http://#{CONFIG['user']}:#{CONFIG['key']}@#{CONFIG['server']}/wd/hub",
:desired_capabilities => @caps)
# Hook new victim
print_info 'Hooking a new victim, waiting a few seconds...'
@driver.navigate.to "#{VICTIM_URL}"
print_info 'Hooking a new victim, waiting a few seconds...'
wait = Selenium::WebDriver::Wait.new(:timeout => 30) # seconds
@driver.navigate.to "#{VICTIM_URL}"
# Give time for browser hook to occur
sleep 3