Skip to content

Commit 8e9c7da

Browse files
Fix #227
1 parent 596f6e0 commit 8e9c7da

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

lib/appium_lib/device/device.rb

-24
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,6 @@ def delegate_from_appium_driver(method, delegation_target=:driver)
255255

256256
# @private
257257
def create_bridge_command(method, verb, path)
258-
# Don't clobber methods that are moved into Selenium
259-
if selenium_has method
260-
log_reimplemented_warning(method, path)
261-
return
262-
end
263-
264258
Selenium::WebDriver::Remote::Bridge.class_eval do
265259
command method, verb, path
266260
if block_given?
@@ -271,24 +265,6 @@ def create_bridge_command(method, verb, path)
271265
end
272266
end
273267

274-
# @private
275-
def selenium_has(method)
276-
Selenium::WebDriver::Remote::Bridge.method_defined? method
277-
end
278-
279-
# @private
280-
def log_reimplemented_warning(method, path)
281-
msg = "Selenium::WebDriver has now implemented the `#{method}` method."
282-
if Selenium::WebDriver::Remote::COMMANDS[method][1] == path
283-
msg << " It may no longer function as expected"
284-
else
285-
msg << " It no longer uses the same endpoint,"
286-
msg << " so it probably won't do what you expect anymore."
287-
end
288-
msg << " Raise an issue at http://github.com/appium/ruby_lib if so."
289-
Appium::Logger.warn msg
290-
end
291-
292268
# @!method accessiblity_id_find
293269
# find_element/s with their accessibility_id
294270
#

0 commit comments

Comments
 (0)