lib/appium_lib/android/helper.rb in appium_lib-0.5.10 vs lib/appium_lib/android/helper.rb in appium_lib-0.5.11

- old
+ new

@@ -169,11 +169,11 @@ when 'viewstub' prefix 'ViewStub' when 'viewswitcher' prefix 'ViewSwitcher' when 'web' - prefix 'WebView' + 'android.webkit.WebView' # WebView is not a widget when 'window' prefix 'FrameLayout' when 'zoom' prefix 'ZoomButton' when 'zoomcontrols' @@ -386,9 +386,16 @@ # 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 + + # Search strings.xml's keys for target. + # @param target [String] the target to search for in strings.xml keys + # @return [Array] + def search_value target + mobile :searchValue, target end # Resolve id in strings.xml and return the value. # @param id [String] the id to resolve # @return [String] \ No newline at end of file