We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1657f8c commit 8162e27Copy full SHA for 8162e27
lib/appium_lib/android/helper.rb
@@ -39,8 +39,13 @@ def start_element(name, attrs = [])
39
40
# scoped to: text resource-id content-desc
41
attributes_values = attributes.values
42
- id_matches = $driver.lazy_load_strings.select do |_key, value|
43
- attributes_values.include? value
+ strings = $driver.lazy_load_strings
+ id_matches = []
44
+
45
+ unless strings.empty?
46
+ id_matches = strings.select do |_key, value|
47
+ attributes_values.include? value
48
+ end
49
end
50
51
string_ids = nil
0 commit comments