Skip to content

Commit 0602e2a

Browse files
authored
feat: Remove timeout deprecated (#267)
* remove deprecated Selenium::WebDriver::Error::TimeOutError * update
1 parent ddbf08f commit 0602e2a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Read `release_notes.md` for commit level details.
55
## [Unreleased]
66

77
### Enhancements
8+
- Remove deprecated `Selenium::WebDriver::Error::TimeOutError` in `webdriver-selenium` gem
89

910
### Bug fixes
1011

lib/appium_lib_core/common/base/search_context.rb

-4
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ def find_element(*args)
135135
by = _set_by_from_finders(how)
136136
begin
137137
bridge.find_element_by by, what.to_s, ref
138-
rescue Selenium::WebDriver::Error::TimeOutError # will deprecate
139-
raise Selenium::WebDriver::Error::NoSuchElementError
140138
rescue Selenium::WebDriver::Error::TimeoutError
141139
raise Selenium::WebDriver::Error::NoSuchElementError
142140
end
@@ -152,8 +150,6 @@ def find_elements(*args)
152150
by = _set_by_from_finders(how)
153151
begin
154152
bridge.find_elements_by by, what.to_s, ref
155-
rescue Selenium::WebDriver::Error::TimeOutError # will deprecate
156-
[]
157153
rescue Selenium::WebDriver::Error::TimeoutError
158154
[]
159155
end

0 commit comments

Comments
 (0)