From 6999ca25974967484c02720414a65e551c7d9f10 Mon Sep 17 00:00:00 2001 From: Jari Bakken Date: Mon, 9 Dec 2013 16:39:06 +0100 Subject: [PATCH] Add deprecation warning to the Ruby Android driver. --- rb/lib/selenium/webdriver/android/bridge.rb | 2 ++ rb/lib/selenium/webdriver/iphone/bridge.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rb/lib/selenium/webdriver/android/bridge.rb b/rb/lib/selenium/webdriver/android/bridge.rb index 73d355fbc430d..d00223e28e8df 100644 --- a/rb/lib/selenium/webdriver/android/bridge.rb +++ b/rb/lib/selenium/webdriver/android/bridge.rb @@ -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), diff --git a/rb/lib/selenium/webdriver/iphone/bridge.rb b/rb/lib/selenium/webdriver/iphone/bridge.rb index da92cfa01d746..a2d1da5d340e4 100644 --- a/rb/lib/selenium/webdriver/iphone/bridge.rb +++ b/rb/lib/selenium/webdriver/iphone/bridge.rb @@ -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),