From b2cb798020dceabe2bdc6ecfe1587a8db47ea7b3 Mon Sep 17 00:00:00 2001 From: Jack Walker Date: Thu, 23 Apr 2020 09:53:19 +1000 Subject: [PATCH] maybee --- spec/beef/modules/debug/test_beef_debugs_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/beef/modules/debug/test_beef_debugs_spec.rb b/spec/beef/modules/debug/test_beef_debugs_spec.rb index 97bdbefae..05e1fe9a1 100644 --- a/spec/beef/modules/debug/test_beef_debugs_spec.rb +++ b/spec/beef/modules/debug/test_beef_debugs_spec.rb @@ -91,22 +91,22 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do before(:each) do @caps = CONFIG['common_caps'].merge(CONFIG['browser_caps'][TASK_ID]) - @caps["name"] = ENV['name'] || example.metadata[:name] || example.metadata[:file_path].split('/').last.split('.').first + @caps["name"] = ENV['name'] || 'no-name' enable_local = @caps["browserstack.local"] && @caps["browserstack.local"].to_s == "true" puts "enable_local is #{enable_local.to_s.upcase}" # Code to start browserstack local before start of test if enable_local - @bs_local = BrowserStack::Local.new - bs_local_args = { "key" => CONFIG['key'], "forcelocal" => true } - @bs_local.start(bs_local_args) - @caps["browserstack.local"] = true - @caps['browserstack.localIdentifier'] = ENV['BROWSERSTACK_LOCAL_IDENTIFIER'] + @bs_local = BrowserStack::Local.new + bs_local_args = { "key" => CONFIG['key'], "forcelocal" => true } + @bs_local.start(bs_local_args) + @caps["browserstack.local"] = true + @caps['browserstack.localIdentifier'] = ENV['BROWSERSTACK_LOCAL_IDENTIFIER'] end @driver = Selenium::WebDriver.for(:remote, - :url => "http://#{CONFIG['user']}:#{CONFIG['key']}@#{CONFIG['server']}/wd/hub", - :desired_capabilities => @caps) + :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...'