Class: Appium::Driver

Inherits:
Object
  • Object
show all
Defined in:
lib/rutl/appium/appium_extension.rb

Overview

Extend Appium because I keep digging through WinAppDriver junk to figure out what’s broken.

Instance Method Summary collapse

Instance Method Details

#quitObject



23
24
25
# File 'lib/rutl/appium/appium_extension.rb', line 23

def quit
  driver_quit
end

#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