Skip to content

Commit

Permalink
Fix #227
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed Jun 28, 2014
1 parent 596f6e0 commit 8e9c7da
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions lib/appium_lib/device/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,6 @@ def delegate_from_appium_driver(method, delegation_target=:driver)

# @private
def create_bridge_command(method, verb, path)
# Don't clobber methods that are moved into Selenium
if selenium_has method
log_reimplemented_warning(method, path)
return
end

Selenium::WebDriver::Remote::Bridge.class_eval do
command method, verb, path
if block_given?
Expand All @@ -271,24 +265,6 @@ def create_bridge_command(method, verb, path)
end
end

# @private
def selenium_has(method)
Selenium::WebDriver::Remote::Bridge.method_defined? method
end

# @private
def log_reimplemented_warning(method, path)
msg = "Selenium::WebDriver has now implemented the `#{method}` method."
if Selenium::WebDriver::Remote::COMMANDS[method][1] == path
msg << " It may no longer function as expected"
else
msg << " It no longer uses the same endpoint,"
msg << " so it probably won't do what you expect anymore."
end
msg << " Raise an issue at http://github.com/appium/ruby_lib if so."
Appium::Logger.warn msg
end

# @!method accessiblity_id_find
# find_element/s with their accessibility_id
#
Expand Down

0 comments on commit 8e9c7da

Please sign in to comment.