Module: Superbot::Runner::Side
- Defined in:
- lib/superbot/runner/side.rb,
lib/superbot/runner/side/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.run(recording) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# 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. if error. == "Command 'selenium-side-runner' not found" puts "To install runner try:", "npm install -g selenium-side-runner" end end end |