Skip to content

Instantly share code, notes, and snippets.

View luke-hill's full-sized avatar

Luke Hill luke-hill

  • United Kingdom
View GitHub Profile
After do |scenario|
if Validation.new(@order_ref).cancel_order?
Cancel.cancel_pending_order(@order_ref)
end
if scenario.failed?
$LOG.info("FAILED: #{scenario_name(scenario)}")
$LOG.info("REASON: #{scenario.exception.message}")
Capybara.current_session.save_screenshot(screenshot_name(name_choice(scenario)), full: true)
else
################LITTLE BIT OF EXERPT FROM THE RUN THAT TIMED OUT (INITIALISATION)###################
11:37:32.698 INFO [13] org.openqa.selenium.remote.server.DriverServlet - Executing: [delete session: 7732ddeb-7cfd-46a6-a050-fa90e60373ca])
11:37:32.698 DEBUG [115] org.openqa.selenium.remote.RemoteWebDriver - Executing: quit [ab80b7803586383e0f1ba864b8a70f55, quit {}]
11:37:32.791 DEBUG [115] org.openqa.selenium.net.UrlChecker - Waiting for http://localhost:22853/shutdown
11:37:32.791 DEBUG [120] org.openqa.selenium.net.UrlChecker - Polling http://localhost:22853/shutdown
11:37:32.791 DEBUG [120] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@4b06ee5 pairs: {GET /shutdown HTTP/1.1: null}{User-Agent: Java/1.8.0_121}{Host: localhost:22853}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
11:37:32.823 DEBUG [120] sun.net.www.protocol.http.HttpURLConnection - sun.net.www.MessageHeader@8ce9174 pairs: {null: HTTP/1.1 200 OK}{Content-Length: 40}{Content-
def create_remote_driver(browser, platform)
if browser == :firefox
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(
platform: platform,
marionette: false,
)
elsif browser == :chrome
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
'chromeOptions' => chrome_switches,
ChildProcess::Error: Access is denied. (5)
./features/support/hooks.rb:29:in `After'
1 scenario (1 failed)
###THEN I GET THIS STACKTRACE###
C:/Ruby22/lib/ruby/gems/2.2.0/gems/childprocess-0.6.1/lib/childprocess/abstract_process.rb:183:in `assert_started': process not started (ChildProcess::Error)
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/childprocess-0.6.1/lib/childprocess/windows/process.rb:39:in `exited?'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-3.0.7/lib/selenium/webdriver/common/service.rb:124:in `process_exited?'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-3.0.7/lib/selenium/webdriver/common/service.rb:110:in `stop_process'