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
-
#udid ⇒ Object
Returns the value of attribute udid.
Instance Method Summary collapse
- #devices ⇒ Object
-
#initialize(options) ⇒ Android
constructor
A new instance of Android.
- #skeletoner ⇒ Object
Methods inherited from Base
Constructor Details
Instance Attribute Details
#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
#devices ⇒ Object
35 36 37 |
# File 'lib/skeleton/android.rb', line 35 def devices `adb devices`.scan(/\n(.*)\t/).flatten end |