File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
android_tests/lib/android/specs/android Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11describe 'android/patch.rb' do
22 t 'type' do
33 # nav to textfield
4- text ( 'app' ) . click
5- text ( 'search' ) . click
6- text ( 'invoke' ) . click
4+ find ( 'app' ) . click
5+ find ( 'search' ) . click
6+ find ( 'invoke' ) . click
77
88 ele = first_textfield
99 ele . type 'ok'
Original file line number Diff line number Diff line change @@ -106,7 +106,9 @@ def current_app
106106 # @return [Element]
107107 def id id
108108 value = resolve_id id
109- raise "Invalid id `#{ id } `" unless value
109+ # If the id doesn't resolve in strings.xml then use it as is
110+ # It's probably a resource id which won't be in strings.xml
111+ value = id unless value
110112 exact = string_visible_exact '*' , value
111113 contains = string_visible_contains '*' , value
112114 xpath "#{ exact } | #{ contains } "
You can’t perform that action at this time.
0 commit comments