Method: Appium::Driver#start

Defined in:
lib/rutl/appium/appium_extension.rb

#startObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rutl/appium/appium_extension.rb', line 7

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