Class: Android

Inherits:
Base
  • Object
show all
Defined in:
lib/skeleton/android.rb

Constant Summary collapse

RESOURCE_ID =
'resource-id'
CONTENT_DESC =
'content-desc'
TEXT =
'text'
ID =
{ java: :id }
XPATH =
{ java: :xpath }
CLASS =
'class'

Constants inherited from Base

Base::ATTACHMENTS_FOLDER, Base::PAGE_OBJECTS_FOLDER, Base::ROOT_DIR, Base::TIMESTAMP

Constants included from Language

Language::JAVA, Language::PYTHON, Language::RUBY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#log, #precondition

Methods included from Language

#java, #ruby

Constructor Details

#initialize(options) ⇒ Android

Returns a new instance of Android.



11
12
13
14
# File 'lib/skeleton/android.rb', line 11

def initialize(options)
  self.platform = options.platform
  self.udid = options.udid
end

Instance Attribute Details

#platformObject

Returns the value of attribute platform.



9
10
11
# File 'lib/skeleton/android.rb', line 9

def platform
  @platform
end

#udidObject

Returns the value of attribute udid.



9
10
11
# File 'lib/skeleton/android.rb', line 9

def udid
  @udid
end

Instance Method Details

#skeletonerObject



16
17
18
19
20
21
22
# File 'lib/skeleton/android.rb', line 16

def skeletoner
  log.info('We starting to skeleton your screen 🚀')
  create_page_objects
  save_screenshot
  save(page_source)
  log.info('We successfully skeletoned your screen 👻')
end