Class: Android
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
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#udid ⇒ Object
Returns the value of attribute udid.
Instance Method Summary collapse
-
#initialize(options) ⇒ Android
constructor
A new instance of Android.
- #skeletoner ⇒ Object
Methods inherited from Base
Methods included from Language
Constructor Details
#initialize(options) ⇒ Android
Returns a new instance of Android.
11 12 13 14 |
# File 'lib/skeleton/android.rb', line 11 def initialize() self.platform = .platform self.udid = .udid end |
Instance Attribute Details
#platform ⇒ Object
Returns the value of attribute platform.
9 10 11 |
# File 'lib/skeleton/android.rb', line 9 def platform @platform end |
#udid ⇒ Object
Returns the value of attribute udid.
9 10 11 |
# File 'lib/skeleton/android.rb', line 9 def udid @udid end |
Instance Method Details
#skeletoner ⇒ Object
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 |