lib/appium_lib/android/helper.rb in appium_lib-0.5.9 vs lib/appium_lib/android/helper.rb in appium_lib-0.5.10
- old
+ new
@@ -380,6 +380,20 @@
#
# 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 search_id target
+ mobile :searchId, target
+ end
+
+ # Resolve id in strings.xml and return the value.
+ # @param id [String] the id to resolve
+ # @return [String]
+ def resolve_id id
+ mobile :resolveId, id
+ end
end # module Appium::Android
\ No newline at end of file