Class: Android
Constant Summary collapse
- RESOURCE_ID =
'resource-id'.freeze
- CONTENT_DESC =
'content-desc'.freeze
- TEXT =
'text'.freeze
- CLASS =
'class'.freeze
- ID =
{ java: :id, ruby: :id, javascript: :id, python: :find_element_by_id }.freeze
- XPATH =
{ java: :xpath, ruby: :xpath, javascript: :xpath, python: :find_element_by_xpath }.freeze
Constants inherited from Base
Base::ATTACHMENTS_FOLDER, Base::PAGE_OBJECTS_FOLDER, Base::ROOT_DIR, Base::TIMESTAMP
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
Constructor Details
Instance Attribute Details
#platform ⇒ Object
Returns the value of attribute platform.
19 20 21 |
# File 'lib/skeleton/android.rb', line 19 def platform @platform end |
#udid ⇒ Object
Returns the value of attribute udid.
19 20 21 |
# File 'lib/skeleton/android.rb', line 19 def udid @udid end |
Instance Method Details
#skeletoner ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/skeleton/android.rb', line 27 def skeletoner log.info('We starting to skeleton your screen 🚀') create_page_objects save_screenshot save(code: page_source) log.info('We successfully skeletoned your screen 👻') end |