Skip to content

Commit a051b35

Browse files
Fix find by ids on Android
1 parent 84e3983 commit a051b35

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

android_tests/lib/android/specs/android/helper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def id_value
7474
2.times { back }
7575
end
7676

77+
t 'ids' do
78+
wait { ids('android:id/text1').length.must_equal 11 }
79+
end
80+
7781
t '_parse_current_app_line' do
7882
# test values from appium's test/unit/adb-specs.js
7983
expected = [

lib/appium_lib/android/helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def id id
149149
# @return [Element]
150150
def ids id
151151
# Android auto resolves strings.xml ids
152-
find_elements :id, value
152+
find_elements :id, id
153153
end
154154

155155
# Find the element of type class_name at matching index.

0 commit comments

Comments
 (0)