module Superbot::Runner::Side

Constants

VERSION

Public Class Methods

run(recording) click to toggle source
# File lib/superbot/runner/side.rb, line 8
def self.run(recording)
  puts 'Loading test...'
  begin
    k = Kommando.run "selenium-side-runner --server http://localhost:4567/wd/hub #{recording}"
    puts k.out
  rescue Kommando::Error => error
    puts error.message
    if error.message == "Command 'selenium-side-runner' not found"
      puts "To install runner try:", "npm install -g selenium-side-runner"
    end
  end
end