Testing new client side wait to increase hook consistency in test.
This commit is contained in:
@@ -89,7 +89,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
||||
@driver.navigate.to "#{VICTIM_URL}"
|
||||
|
||||
# Give time for browser hook to occur
|
||||
wait = Selenium::Webdriver::Wait.new(:timeout => 30) # seconds
|
||||
wait = Selenium::WebDriver::Wait.new(:timeout => 30) # seconds
|
||||
wait.until { driver.execute_script("return !!window.beef.session").equals "true"}
|
||||
|
||||
@hooks = JSON.parse(RestClient.get "#{RESTAPI_HOOKS}?token=#{@token}")
|
||||
|
||||
Reference in New Issue
Block a user