lib/appium_lib/android/helper.rb in appium_lib-0.7.0 vs lib/appium_lib/android/helper.rb in appium_lib-0.7.1
- old
+ new
@@ -305,14 +305,10 @@
def page_class
puts get_page_class
nil
end
- def lazy_load_strings
- @strings_xml ||= mobile(:getStrings)
- end
-
# Android only.
# Returns a string containing interesting elements.
# If an element has no content desc or text, then it's not returned by this method.
# @return [String]
def get_android_inspect
@@ -412,33 +408,9 @@
# ```
#
# We want steps to be exactly 1. If it's zero then a tap is used instead of a swipe.
def fast_duration
0.20
- end
-
- # Search strings.xml's values for target.
- # @param target [String] the target to search for in strings.xml values
- # @return [Array]
- def xml_keys target
- lazy_load_strings
- @strings_xml.select { |key, value| key.downcase.include? target.downcase }
- end
-
- # Search strings.xml's keys for target.
- # @param target [String] the target to search for in strings.xml keys
- # @return [Array]
- def xml_values target
- lazy_load_strings
- @strings_xml.select { |key, value| value.downcase.include? target.downcase }
- end
-
- # Resolve id in strings.xml and return the value.
- # @param id [String] the id to resolve
- # @return [String]
- def resolve_id id
- lazy_load_strings
- @strings_xml[id]
end
# Lists package, activity, and adb shell am start -n value for current app.
# Works on local host only (not remote).
def current_app
\ No newline at end of file