From 3ece2841234877992ab77a9de1027cbb37f5c9fc Mon Sep 17 00:00:00 2001 From: Kazuaki MATSUO Date: Sun, 18 Jun 2017 17:45:02 +0900 Subject: [PATCH] mark deprecated for client side xpath strategy --- lib/appium_lib/android/client_xpath.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/appium_lib/android/client_xpath.rb b/lib/appium_lib/android/client_xpath.rb index 58a2dd3b..df3f9be7 100644 --- a/lib/appium_lib/android/client_xpath.rb +++ b/lib/appium_lib/android/client_xpath.rb @@ -33,11 +33,15 @@ def _client_xpath(opts = {}) _nodeset_to_uiselector nodes: nodes, first: first end + # @deprecated Please use :uiautomator or :xpath strategy directly def client_xpath(xpath) + warn '[DEPRECATION] client_xpath will be removed. Please use :uiautomator or :xpath strategy directly.' find_element :uiautomator, _client_xpath(xpath: xpath, first: true) end + # @deprecated Please use :uiautomator or :xpath strategy directly def client_xpaths(xpath) + warn '[DEPRECATION] client_xpaths will be removed. Please use :uiautomator or :xpath strategy directly.' find_elements :uiautomator, _client_xpath(xpath: xpath, first: false) end end