Skip to content

Commit 20307a0

Browse files
authoredJun 20, 2017
mark deprecated for client side xpath strategy (#608)
1 parent 5d40446 commit 20307a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lib/appium_lib/android/client_xpath.rb

+4
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ def _client_xpath(opts = {})
3333
_nodeset_to_uiselector nodes: nodes, first: first
3434
end
3535

36+
# @deprecated Please use :uiautomator or :xpath strategy directly
3637
def client_xpath(xpath)
38+
warn '[DEPRECATION] client_xpath will be removed. Please use :uiautomator or :xpath strategy directly.'
3739
find_element :uiautomator, _client_xpath(xpath: xpath, first: true)
3840
end
3941

42+
# @deprecated Please use :uiautomator or :xpath strategy directly
4043
def client_xpaths(xpath)
44+
warn '[DEPRECATION] client_xpaths will be removed. Please use :uiautomator or :xpath strategy directly.'
4145
find_elements :uiautomator, _client_xpath(xpath: xpath, first: false)
4246
end
4347
end

0 commit comments

Comments
 (0)
Please sign in to comment.