File tree 1 file changed +6
-2
lines changed
lib/appium_lib_core/common/base
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,9 @@ def find_element(*args)
133
133
by = _set_by_from_finders ( how )
134
134
begin
135
135
bridge . find_element_by by , what . to_s , ref
136
- rescue Selenium ::WebDriver ::Error ::TimeOutError
136
+ rescue Selenium ::WebDriver ::Error ::TimeOutError # will deprecate
137
+ raise Selenium ::WebDriver ::Error ::NoSuchElementError
138
+ rescue Selenium ::WebDriver ::Error ::TimeoutError
137
139
raise Selenium ::WebDriver ::Error ::NoSuchElementError
138
140
end
139
141
end
@@ -148,7 +150,9 @@ def find_elements(*args)
148
150
by = _set_by_from_finders ( how )
149
151
begin
150
152
bridge . find_elements_by by , what . to_s , ref
151
- rescue Selenium ::WebDriver ::Error ::TimeOutError
153
+ rescue Selenium ::WebDriver ::Error ::TimeOutError # will deprecate
154
+ [ ]
155
+ rescue Selenium ::WebDriver ::Error ::TimeoutError
152
156
[ ]
153
157
end
154
158
end
You can’t perform that action at this time.
0 commit comments