Sha256: 196e1a914a68621bf8a447466477d769a13ba61bd73a1f85f2d029fa27522023
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
module Appium ## # Extend Appium because I keep digging through WinAppDriver junk to # figure out what's broken. # class Driver def start start_driver rescue RuntimeError => e if e.cause.to_s =~ /Failed to open TCP connection/ puts 'Cannot reach Appium server. Is it running? On the right port?' else puts "Cannot diagnose:\n#{e}" end exit rescue Selenium::WebDriver::Error::NoSuchWindowError => e puts "\n\n" + e.class puts "\n\n" + e.cause puts "\n\n" + e.backtrace puts "\n\n" + (e.methods - Class.methods) end def quit driver_quit end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.8.0 | lib/rutl/appium/appium_extension.rb |