docs/android_docs.md in appium_lib-0.6.2 vs docs/android_docs.md in appium_lib-0.6.3

- old
+ new

@@ -1,6 +1,6 @@ -##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L12) +##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L12) > def load_appium_txt opts Load appium.txt (toml format) into system ENV the basedir of this file + appium.txt is what's used @@ -13,11 +13,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<String>] the require files. nil if require doesn't exist -- -##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L129) +##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L129) > def self.promote_appium_methods class_array Promote appium methods to class instance methods @@ -31,11 +31,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Class>] class_array - An array of classes -- -##### [default_wait](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L427) +##### [default_wait](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L426) > def default_wait Returns the default client side wait. This value is independent of what the server is using @@ -44,91 +44,91 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Integer] -- -##### [app_path](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [app_path](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def app_path Returns the value of attribute app_path -- -##### [app_name](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [app_name](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def app_name Returns the value of attribute app_name -- -##### [device](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [device](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def device Returns the value of attribute device -- -##### [app_package](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [app_package](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def app_package Returns the value of attribute app_package -- -##### [app_activity](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [app_activity](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def app_activity Returns the value of attribute app_activity -- -##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [app_wait_activity](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def app_wait_activity Returns the value of attribute app_wait_activity -- -##### [sauce_username](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [sauce_username](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def sauce_username Returns the value of attribute sauce_username -- -##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def sauce_access_key Returns the value of attribute sauce_access_key -- -##### [port](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [port](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def port Returns the value of attribute port -- -##### [debug](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L159) +##### [debug](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L158) > def debug Returns the value of attribute debug -- -##### [initialize](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L191) +##### [initialize](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L190) > def initialize opts={} Creates a new driver. :device is :android, :ios, or :selendroid @@ -165,11 +165,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Driver] -- -##### [status](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L285) +##### [status](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L284) > def status Returns the status payload @@ -191,11 +191,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[JSON] -- -##### [server_version](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L291) +##### [server_version](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L290) > def server_version Returns the server's version string @@ -203,11 +203,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L332) +##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L331) > def absolute_app_path Converts environment variable APP_PATH to an absolute path. @@ -215,11 +215,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] APP_PATH as an absolute path -- -##### [server_url](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L348) +##### [server_url](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L347) > def server_url Get the server url for sauce or local based on env vars. @@ -227,11 +227,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] the server url -- -##### [restart](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L358) +##### [restart](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L357) > def restart Restarts the driver @@ -239,11 +239,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Driver] the driver -- -##### [driver](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L365) +##### [driver](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L364) > def driver Returns the driver @@ -251,11 +251,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Driver] the driver -- -##### [screenshot](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L375) +##### [screenshot](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L374) > def screenshot png_save_path Takes a png screenshot and saves to the target path. @@ -269,11 +269,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [driver_quit](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L381) +##### [driver_quit](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L380) > def driver_quit Quits the driver @@ -281,11 +281,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [start_driver](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L389) +##### [start_driver](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L388) > def start_driver Creates a new global driver and quits the old one if it exists. @@ -293,19 +293,19 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Selenium::WebDriver] the new global driver -- -##### [no_wait](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L413) +##### [no_wait](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L412) > def no_wait Set implicit wait to zero. -- -##### [set_wait](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L420) +##### [set_wait](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L419) > def set_wait timeout=@default_wait Set implicit wait to timeout, defaults to 30. @@ -317,11 +317,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [exists](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L443) +##### [exists](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L442) > def exists pre_check=0, post_check=@default_wait, &search_block Returns existence of element. @@ -343,11 +343,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Boolean] -- -##### [execute_script](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L465) +##### [execute_script](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L464) > def execute_script script, *args The same as @driver.execute_script @@ -361,11 +361,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Object] -- -##### [mobile](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L481) +##### [mobile](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L480) > def mobile method, *args Helper method for mobile gestures @@ -387,11 +387,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Object] -- -##### [find_elements](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L492) +##### [find_elements](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L491) > def find_elements *args Calls @driver.find_elements @@ -403,11 +403,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] Array is empty when no elements are found. -- -##### [find_element](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L500) +##### [find_element](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L499) > def find_element *args Calls @driver.find_elements @@ -419,11 +419,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [x](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/driver.rb#L507) +##### [x](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/driver.rb#L506) > def x Quit the driver and Pry. quit and exit are reserved by Pry. @@ -432,11 +432,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [wait](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L33) +##### [wait](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L33) > def wait max_wait=30, interval=0.5, &block Check every 0.5 seconds to see if block.call doesn't raise an exception. if .call raises an exception then it will be tried again. @@ -459,19 +459,19 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Object] the result of block.call -- -##### [ignore](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L45) +##### [ignore](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L45) > def ignore &block Return block.call and ignore any exceptions. -- -##### [wait_true](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L55) +##### [wait_true](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L55) > def wait_true max_wait=30, interval=0.5, &block Check every 0.5 seconds to see if block.call returns true. nil is considered a failure. Give up after 30 seconds. @@ -488,11 +488,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Object] the result of block.call -- -##### [id](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L69) +##### [id](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L69) > def id id Find by id. Useful for selendroid @@ -504,11 +504,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [back](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L75) +##### [back](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L75) > def back Navigate back. @@ -516,19 +516,19 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [session_id](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L80) +##### [session_id](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L80) > def session_id For Sauce Labs reporting. Returns the current session id. -- -##### [xpath](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L88) +##### [xpath](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L88) > def xpath xpath_str Returns the first element that matches the provided xpath. @@ -540,11 +540,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [xpaths](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L96) +##### [xpaths](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L96) > def xpaths xpath_str Returns all elements that match the provided xpath. @@ -556,11 +556,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] -- -##### [ele_index](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L104) +##### [ele_index](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L104) > def ele_index tag_name, index Get the element of type tag_name at matching index. @@ -574,11 +574,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the found element of type tag_name -- -##### [find_eles](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L112) +##### [find_eles](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L112) > def find_eles tag_name Get all elements exactly matching tag name @@ -590,11 +590,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] the found elements of type tag_name -- -##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L120) +##### [find_ele_by_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L120) > def find_ele_by_text tag, text Get the first tag that exactly matches tag and text. @@ -608,11 +608,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the element of type tag exactly matching text -- -##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L128) +##### [find_eles_by_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L128) > def find_eles_by_text tag, text Get all tags that exactly match tag and text. @@ -626,11 +626,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] the elements of type tag exactly matching text -- -##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L137) +##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L137) > def find_ele_by_attr_include tag, attr, value Get the first tag by attribute that exactly matches value. @@ -646,11 +646,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the element of type tag who's attribute includes value -- -##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L146) +##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L146) > def find_eles_by_attr_include tag, attr, value Get tags by attribute that include value. @@ -666,11 +666,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] the elements of type tag who's attribute includes value -- -##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L155) +##### [find_ele_by_text_include](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L155) > def find_ele_by_text_include tag, text Get the first tag that includes text. element.attribute(:text).include? text @@ -685,11 +685,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the element of type tag that includes text -- -##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L164) +##### [find_eles_by_text_include](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L164) > def find_eles_by_text_include tag, text Get the tags that include text. element.attribute(:text).include? text @@ -704,11 +704,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] the elements of type tag that includes text -- -##### [first_ele](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L171) +##### [first_ele](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L171) > def first_ele tag_name Get the first tag that matches tag_name @@ -720,11 +720,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [last_ele](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L179) +##### [last_ele](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L179) > def last_ele tag_name Get the last tag that matches tag_name @@ -736,11 +736,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [source](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L185) +##### [source](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L185) > def source Prints a JSON view of the current page @@ -748,11 +748,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [get_source](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L191) +##### [get_source](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L191) > def get_source Gets a JSON view of the current page @@ -760,11 +760,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[JSON] -- -##### [find_name](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L200) +##### [find_name](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L200) > def find_name name Returns the first element that exactly matches name @@ -776,11 +776,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [find_names](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L208) +##### [find_names](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L208) > def find_names name Returns all elements that exactly match name @@ -792,11 +792,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] -- -##### [tag](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/helper.rb#L216) +##### [tag](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L216) > def tag tag_name Returns the first element matching tag_name @@ -808,23 +808,35 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [s_texts](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/text.rb#L8) +##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/helper.rb#L226) +> def px_to_window_rel opts={} + +Converts pixel values to window relative values + +```ruby +px_to_window_rel x: 50, y: 150 +``` + +-- + +##### [s_texts](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/text.rb#L8) + > def s_texts Get an array of text texts. __Returns:__ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<String>] -- -##### [e_s_texts](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/text.rb#L14) +##### [e_s_texts](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/text.rb#L14) > def e_s_texts Get an array of text elements. @@ -832,11 +844,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Text>] -- -##### [first_s_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/text.rb#L20) +##### [first_s_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/text.rb#L20) > def first_s_text Get the first text element. @@ -844,11 +856,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Text] -- -##### [last_s_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/text.rb#L26) +##### [last_s_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/text.rb#L26) > def last_s_text Get the last text element @@ -856,11 +868,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Text] -- -##### [s_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/text.rb#L33) +##### [s_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/text.rb#L33) > def s_text text Get the first element that includes text. @@ -872,11 +884,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Text] -- -##### [s_text_exact](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/text.rb#L41) +##### [s_text_exact](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/text.rb#L41) > def s_text_exact text Get the first textfield that matches text. @@ -888,19 +900,19 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Text] -- -##### [window_size](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/window.rb#L5) +##### [window_size](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/window.rb#L5) > def window_size Get the window's size -- -##### [button](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L8) +##### [button](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L8) > def button text, number=0 Find a button by text and optionally number. @@ -914,11 +926,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Button] the button found with text and matching number -- -##### [buttons](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L19) +##### [buttons](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L19) > def buttons text=nil Get an array of button texts or button elements if text is provided. @@ -930,11 +942,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<String>, Array<Buttons>] either an array of button texts or an array of button elements if text is provided. -- -##### [first_button](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L26) +##### [first_button](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L26) > def first_button Get the first button element. @@ -942,11 +954,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Button] -- -##### [last_button](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L32) +##### [last_button](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L32) > def last_button Get the last button element. @@ -954,11 +966,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Button] -- -##### [button_exact](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L39) +##### [button_exact](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L39) > def button_exact text Get the first button element that exactly matches text. @@ -970,11 +982,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Button] -- -##### [buttons_exact](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L46) +##### [buttons_exact](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L46) > def buttons_exact text Get all button elements that exactly match text. @@ -986,11 +998,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Button>] -- -##### [e_buttons](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L52) +##### [e_buttons](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L52) > def e_buttons Get an array of button elements. @@ -998,11 +1010,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Button>] -- -##### [button_num](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/element/button.rb#L72) +##### [button_num](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/element/button.rb#L72) > def button_num text, number=1 Expected to be called via button method. @@ -1027,11 +1039,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Button] the button that matches text and number -- -##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L6) android +##### [tag_name_to_android](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L6) android > def tag_name_to_android tag_name Returns an array of android classes that match the tag name @@ -1043,11 +1055,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L194) android +##### [find_eles_attr](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L194) android > def find_eles_attr tag_name, attribute=nil Find all elements matching the attribute On android, assume the attr is name (which falls back to text). @@ -1064,11 +1076,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L216) android +##### [get_selendroid_inspect](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L216) android > def get_selendroid_inspect Selendroid only. Returns a string containing interesting elements. @@ -1077,28 +1089,28 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [get_page_class](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L278) android +##### [get_page_class](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L278) android > def get_page_class -- -##### [page_class](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L305) android +##### [page_class](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L305) android > def page_class Count all classes on screen and print to stdout. Useful for appium_console. -- -##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L314) android +##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L314) android > def get_android_inspect Android only. Returns a string containing interesting elements. @@ -1108,11 +1120,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [get_inspect](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L363) android +##### [get_inspect](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L363) android > def get_inspect Automatically detects selendroid or android. Returns a string containing interesting elements. @@ -1121,20 +1133,20 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [page](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L369) android +##### [page](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L369) android > def page Intended for use with console. Inspects and prints the current page. -- -##### [fast_duration](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L382) android +##### [fast_duration](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L382) android > def fast_duration JavaScript code from https://github.com/appium/appium/blob/master/app/android.js @@ -1145,11 +1157,11 @@ We want steps to be exactly 1. If it's zero then a tap is used instead of a swipe. -- -##### [xml_keys](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L389) android +##### [xml_keys](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L389) android > def xml_keys target Search strings.xml's values for target. @@ -1161,11 +1173,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array] -- -##### [xml_values](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L396) android +##### [xml_values](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L396) android > def xml_values target Search strings.xml's keys for target. @@ -1177,11 +1189,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array] -- -##### [resolve_id](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L403) android +##### [resolve_id](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L403) android > def resolve_id id Resolve id in strings.xml and return the value. @@ -1193,20 +1205,20 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [current_app](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/helper.rb#L409) android +##### [current_app](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/helper.rb#L409) android > def current_app Lists package, activity, and adb shell am start -n value for current app. Works on local host only (not remote). -- -##### [alert_click](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/alert.rb#L6) android +##### [alert_click](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/alert.rb#L6) android > def alert_click value Tap the alert button identified by value. @@ -1218,11 +1230,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [alert_accept](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/alert.rb#L13) android +##### [alert_accept](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/alert.rb#L13) android > def alert_accept Accept the alert. The last button is considered "accept." @@ -1231,11 +1243,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/alert.rb#L20) android +##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/alert.rb#L20) android > def alert_accept_text Get the text of the alert's accept button. The last button is considered "accept." @@ -1244,11 +1256,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/alert.rb#L27) android +##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/alert.rb#L27) android > def alert_dismiss Dismiss the alert. The first button is considered "dismiss." @@ -1257,11 +1269,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[void] -- -##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/alert.rb#L34) android +##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/alert.rb#L34) android > def alert_dismiss_text Get the text of the alert's dismiss button. The first button is considered "dismiss." @@ -1270,11 +1282,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] -- -##### [find](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/generic.rb#L44) android +##### [find](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/generic.rb#L44) android > def find val Find the value contained in content description or text. Search elements in this order: EditText, Button, ImageButton @@ -1287,11 +1299,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] -- -##### [text](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/generic.rb#L70) android +##### [text](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/generic.rb#L70) android > def text text Return the first element matching text. @@ -1303,11 +1315,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the first matching element -- -##### [texts](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/generic.rb#L79) android +##### [texts](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/generic.rb#L79) android > def texts text Return all elements matching text. @@ -1319,11 +1331,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] all matching elements -- -##### [name](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/generic.rb#L88) android +##### [name](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/generic.rb#L88) android > def name name Return the first element matching name. on Android name is content description @@ -1337,11 +1349,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the first matching element -- -##### [names](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/generic.rb#L99) android +##### [names](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/generic.rb#L99) android > def names name Return all elements matching name. on Android name is content description @@ -1355,11 +1367,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Element>] all matching elements -- -##### [scroll_to](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/generic.rb#L108) android +##### [scroll_to](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/generic.rb#L108) android > def scroll_to text Scroll to an element containing target text or description. @@ -1371,11 +1383,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element] the element scrolled to -- -##### [textfields](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/textfield.rb#L7) android +##### [textfields](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/textfield.rb#L7) android > def textfields Get an array of textfield texts. @@ -1383,11 +1395,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<String>] -- -##### [e_textfields](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/textfield.rb#L13) android +##### [e_textfields](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/textfield.rb#L13) android > def e_textfields Get an array of textfield elements. @@ -1395,11 +1407,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Textfield>] -- -##### [first_textfield](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/textfield.rb#L19) android +##### [first_textfield](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/textfield.rb#L19) android > def first_textfield Get the first textfield element. @@ -1407,11 +1419,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Textfield] -- -##### [last_textfield](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/textfield.rb#L25) android +##### [last_textfield](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/textfield.rb#L25) android > def last_textfield Get the last textfield element. @@ -1419,11 +1431,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Textfield] -- -##### [textfield](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/textfield.rb#L32) android +##### [textfield](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/textfield.rb#L32) android > def textfield text Get the first textfield that includes text or name (content description). @@ -1435,11 +1447,11 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Textfield] -- -##### [textfield_exact](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/android/element/textfield.rb#L45) android +##### [textfield_exact](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/android/element/textfield.rb#L45) android > def textfield_exact text Get the first textfield that matches text. @@ -1451,40 +1463,40 @@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Textfield] -- -##### [value](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/patch.rb#L32) +##### [value](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/patch.rb#L32) > def value Returns the value attribute Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element -- -##### [name](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/patch.rb#L39) +##### [name](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/patch.rb#L39) > def name Returns the name attribute Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element -- -##### [tag_name](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/patch.rb#L46) +##### [tag_name](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/patch.rb#L46) > def tag_name Returns the type attribute Fixes Selenium::WebDriver::Error::UnknownError: Not yet implemented -- -##### [location_rel](https://github.com/appium/ruby_lib/blob/44b4b29596b59b1d8a7a7ab7485f176a84143ac3/lib/appium_lib/common/patch.rb#L58) +##### [location_rel](https://github.com/appium/ruby_lib/blob/509e7b81f02c6b0c4cdcb07aca034c9dad260ff4/lib/appium_lib/common/patch.rb#L58) > def location_rel For use with mobile tap.