Debugging travis

This commit is contained in:
Jack Walker
2020-04-22 14:33:26 +10:00
parent d21438a10c
commit e957d7779d
2 changed files with 10 additions and 0 deletions

View File

@@ -1974,3 +1974,11 @@ You can now access your local server(s) in our remote browser.
Press Ctrl-C to exit Press Ctrl-C to exit
BrowserStackLocal v7.6
You can now access your local server(s) in our remote browser.
Press Ctrl-C to exit

View File

@@ -16,6 +16,7 @@ require 'rest-client'
require 'yaml' require 'yaml'
require 'selenium-webdriver' require 'selenium-webdriver'
require 'browserstack/local' require 'browserstack/local'
require 'byebug'
# Require supports # Require supports
Dir['spec/support/*.rb'].each do |f| Dir['spec/support/*.rb'].each do |f|
@@ -82,6 +83,7 @@ RSpec.configure do |config|
@caps['browserstack.localIdentifier'] = ENV['BROWSERSTACK_LOCAL_IDENTIFIER'] @caps['browserstack.localIdentifier'] = ENV['BROWSERSTACK_LOCAL_IDENTIFIER']
end end
puts @caps['browserstack.localIdentifier']
@driver = Selenium::WebDriver.for(:remote, @driver = Selenium::WebDriver.for(:remote,
:url => "http://#{CONFIG['user']}:#{CONFIG['key']}@#{CONFIG['server']}/wd/hub", :url => "http://#{CONFIG['user']}:#{CONFIG['key']}@#{CONFIG['server']}/wd/hub",
:desired_capabilities => @caps) :desired_capabilities => @caps)