Skip to content

Commit

Permalink
Add deprecation warning to the Ruby Android driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Dec 9, 2013
1 parent 46bf591 commit 6999ca2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rb/lib/selenium/webdriver/android/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Bridge < Remote::Bridge
DEFAULT_URL = "http://#{Platform.localhost}:8080/wd/hub/"

def initialize(opts = {})
warn 'The Android driver is deprecated - please use either http://selendroid.io or http://appium.io instead.'

remote_opts = {
:url => opts.fetch(:url, DEFAULT_URL),
:desired_capabilities => opts.fetch(:desired_capabilities, capabilities),
Expand Down
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/iphone/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Bridge < Remote::Bridge
DEFAULT_URL = "http://#{Platform.localhost}:3001/wd/hub/"

def initialize(opts = {})
warn 'The iPhone driver is reprecated - please use http://appium.io/ or http://ios-driver.github.io/ios-driver/ instead'
warn 'The iPhone driver is deprecated - please use either http://appium.io/ or http://ios-driver.github.io/ios-driver/ instead'

remote_opts = {
:url => opts.fetch(:url, DEFAULT_URL),
Expand Down

0 comments on commit 6999ca2

Please sign in to comment.