From 1f20df4ea663c881d10d173c2df178169f257c95 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 7 Oct 2017 14:57:53 +0900 Subject: [PATCH] Release 9 7 2 (#692) * Release 9.7.2 * Update release notes --- docs/android_docs.md | 439 ++++++++++++++---------------- docs/ios_docs.md | 543 ++++++++++++++++++-------------------- lib/appium_lib/version.rb | 4 +- release_notes.md | 6 + 4 files changed, 458 insertions(+), 534 deletions(-) diff --git a/docs/android_docs.md b/docs/android_docs.md index 07d8965b..8ebbf534 100644 --- a/docs/android_docs.md +++ b/docs/android_docs.md @@ -1,4 +1,4 @@ -##### [load_settings](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L45) +##### [load_settings](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L45) > def load_settings(opts = {}) @@ -27,7 +27,7 @@ __Returns:__ -- -##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L78) +##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L79) > def load_settings(opts = {}) @@ -56,7 +56,7 @@ __Returns:__ -- -##### [expand_required_files](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L83) +##### [expand_required_files](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L84) > def expand_required_files(base_dir, file_paths) @@ -74,7 +74,7 @@ __Returns:__ -- -##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L122) +##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L126) > def promote_singleton_appium_methods(modules, driver = $driver) @@ -90,9 +90,15 @@ if modules is a module instead of an array, then the constants of that module are promoted on. otherwise, the array of modules will be used as the promotion target. +__Parameters:__ + +     [Array] modules - An array of modules + +     [Driver] driver - A driver to extend for + -- -##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L175) +##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L181) > def promote_appium_methods(class_array, driver = $driver) @@ -100,29 +106,17 @@ Promote appium methods to class instance methods To promote methods to all classes: -```ruby -Appium.promote_appium_methods Object -``` - It's better to promote on specific classes instead of Object -```ruby -# promote on rspec -Appium.promote_appium_methods RSpec::Core::ExampleGroup -``` - -```ruby -# promote on minispec -Appium.promote_appium_methods Minitest::Spec -``` - __Parameters:__      [Array] class_array - An array of classes +     [Driver] driver - A driver to extend for + -- -##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L24) +##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L24) > def global_webdriver_http_sleep @@ -130,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call. -- -##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L24) +##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L24) > def global_webdriver_http_sleep=(value) @@ -138,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call. -- -##### [sauce](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L27) +##### [sauce](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L27) > def sauce @@ -146,7 +140,7 @@ SauceLab's settings -- -##### [sauce_username](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L30) +##### [sauce_username](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L30) > def sauce_username @@ -155,7 +149,7 @@ same as @sauce.username -- -##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L33) +##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L33) > def sauce_access_key @@ -164,7 +158,7 @@ same as @sauce.access_key -- -##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L36) +##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L36) > def sauce_endpoint @@ -173,7 +167,7 @@ same as @sauce.endpoint -- -##### [caps](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L39) +##### [caps](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L39) > def caps @@ -181,7 +175,7 @@ from Core -- -##### [custom_url](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L40) +##### [custom_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L40) > def custom_url @@ -189,7 +183,7 @@ Returns the value of attribute custom_url -- -##### [export_session](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L41) +##### [export_session](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L41) > def export_session @@ -197,7 +191,7 @@ Returns the value of attribute export_session -- -##### [default_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L42) +##### [default_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L42) > def default_wait @@ -205,7 +199,7 @@ Returns the value of attribute default_wait -- -##### [appium_port](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L43) +##### [appium_port](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L43) > def appium_port @@ -213,7 +207,7 @@ Returns the value of attribute appium_port -- -##### [appium_device](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L44) +##### [appium_device](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L44) > def appium_device @@ -221,7 +215,7 @@ Returns the value of attribute appium_device -- -##### [automation_name](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L45) +##### [automation_name](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L45) > def automation_name @@ -229,7 +223,7 @@ Returns the value of attribute automation_name -- -##### [listener](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L46) +##### [listener](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L46) > def listener @@ -237,7 +231,7 @@ Returns the value of attribute listener -- -##### [http_client](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L47) +##### [http_client](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L47) > def http_client @@ -245,7 +239,7 @@ Returns the value of attribute http_client -- -##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L48) +##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L48) > def appium_wait_timeout @@ -253,7 +247,7 @@ Returns the value of attribute appium_wait_timeout -- -##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L49) +##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L49) > def appium_wait_interval @@ -261,7 +255,7 @@ Returns the value of attribute appium_wait_interval -- -##### [appium_server_status](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L52) +##### [appium_server_status](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L52) > def appium_server_status @@ -269,7 +263,7 @@ Appium's server version -- -##### [appium_debug](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L54) +##### [appium_debug](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L54) > def appium_debug @@ -277,7 +271,7 @@ Boolean debug mode for the Appium Ruby bindings -- -##### [driver](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L57) +##### [driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L57) > def driver @@ -289,7 +283,7 @@ __Returns:__ -- -##### [core](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L59) +##### [core](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L59) > def core @@ -297,7 +291,7 @@ Instance of Appium::Core::Driver -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L113) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L110) > def initialize(opts = {}, global_driver = nil) @@ -316,7 +310,7 @@ __Returns:__ -- -##### [driver_attributes](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L218) +##### [driver_attributes](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L215) > def driver_attributes @@ -324,7 +318,7 @@ Returns a hash of the driver attributes -- -##### [device_is_android?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L237) +##### [device_is_android?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L234) > def device_is_android? @@ -336,7 +330,7 @@ __Returns:__ -- -##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L241) +##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L238) > def device_is_ios? @@ -348,7 +342,7 @@ __Returns:__ -- -##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L245) +##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L242) > def device_is_windows? @@ -360,7 +354,7 @@ __Returns:__ -- -##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L251) +##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L248) > def automation_name_is_uiautomator2? @@ -372,7 +366,7 @@ __Returns:__ -- -##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L257) +##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L254) > def automation_name_is_espresso? @@ -384,7 +378,7 @@ __Returns:__ -- -##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L263) +##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L260) > def automation_name_is_xcuitest? @@ -396,7 +390,7 @@ __Returns:__ -- -##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L270) +##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L267) > def check_server_version_xcuitest @@ -409,28 +403,19 @@ __Returns:__ -- -##### [appium_server_version](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L292) +##### [appium_server_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L288) > def appium_server_version Returns the server's version info -```ruby -{ - "build" => { - "version" => "0.18.1", - "revision" => "d242ebcfd92046a974347ccc3a28f0e898595198" - } -} -``` - __Returns:__      [Hash] -- -##### [platform_version](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L302) +##### [platform_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L298) > def platform_version @@ -442,25 +427,19 @@ __Returns:__ -- -##### [appium_client_version](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L321) +##### [appium_client_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L317) > def appium_client_version Returns the client's version info -```ruby -{ - "version" => "9.1.1" -} -``` - __Returns:__      [Hash] -- -##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L333) +##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L329) > def self.absolute_app_path(opts) @@ -477,7 +456,7 @@ __Returns:__ -- -##### [server_url](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L366) +##### [server_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L362) > def server_url @@ -489,7 +468,7 @@ __Returns:__ -- -##### [restart](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L374) +##### [restart](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L370) > def restart @@ -501,14 +480,12 @@ __Returns:__ -- -##### [screenshot](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L385) +##### [screenshot](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L383) > def screenshot(png_save_path) Takes a png screenshot and saves to the target path. -Example: screenshot '/tmp/hi.png' - __Parameters:__      [String] png_save_path - the full path to save the png @@ -519,7 +496,7 @@ __Returns:__ -- -##### [driver_quit](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L391) +##### [driver_quit](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L389) > def driver_quit @@ -531,7 +508,7 @@ __Returns:__ -- -##### [quit_driver](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L394) +##### [quit_driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L392) > def driver_quit @@ -543,7 +520,7 @@ __Returns:__ -- -##### [window_size](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L403) +##### [window_size](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L403) > def window_size @@ -555,7 +532,7 @@ __Returns:__ -- -##### [start_driver](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L433) +##### [start_driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L432) > def start_driver(http_client_ops = @@ -572,7 +549,7 @@ __Returns:__ -- -##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L457) +##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L456) > def set_implicit_wait(wait) @@ -580,7 +557,7 @@ To ignore error for Espresso Driver -- -##### [no_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L467) +##### [no_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L466) > def no_wait @@ -588,18 +565,12 @@ Set implicit wait to zero. -- -##### [set_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L481) +##### [set_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L480) > def set_wait(timeout = nil) Set implicit wait. Default to @core.default_wait. -```ruby -set_wait 2 -set_wait # @core.default_wait - -``` - __Parameters:__      [Integer] timeout - the timeout in seconds @@ -610,7 +581,7 @@ __Returns:__ -- -##### [exists](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L498) +##### [exists](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L497) > def exists(pre_check = 0, post_check = @core.default_wait) @@ -634,7 +605,7 @@ __Returns:__ -- -##### [execute_script](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L522) +##### [execute_script](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L521) > def execute_script(script, *args) @@ -652,7 +623,7 @@ __Returns:__ -- -##### [find_elements](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L546) +##### [find_elements](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L543) > def find_elements(*args) @@ -672,7 +643,7 @@ __Returns:__ -- -##### [find_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L562) +##### [find_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L558) > def find_element(*args) @@ -690,7 +661,7 @@ __Returns:__ -- -##### [set_location](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L575) +##### [set_location](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L571) > def set_location(opts = {}) @@ -706,7 +677,7 @@ __Returns:__ -- -##### [x](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L585) +##### [x](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L581) > def x @@ -719,7 +690,7 @@ __Returns:__ -- -##### [username](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L4) +##### [username](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L4) > def username @@ -727,7 +698,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US -- -##### [access_key](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L6) +##### [access_key](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L6) > def access_key @@ -735,31 +706,35 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ -- -##### [endpoint](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L8) +##### [endpoint](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L8) > def endpoint -Override the Sauce Appium endpoint to allow e.g. TestObject tests +Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'ondemand.saucelabs.com:443/wd/hub'. -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L10) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L33) > def initialize(appium_lib_opts) +Create a SauceLabs instance to manage sauce labs related attributes. +__Parameters:__ + +     [Hash] appium_lib_opts - Appium library parameter __Returns:__ -     [SauceLabs] a new instance of SauceLabs +     [Appium::SauceLabs] -- -##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L21) +##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L53) > def sauce_server_url? - +Return true if an instance of Appium::SauceLabs has sauce_username and sauce_access_key. __Returns:__ @@ -767,15 +742,19 @@ __Returns:__ -- -##### [server_url](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L25) +##### [server_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L66) > def server_url +Return a particular server url to access to. Default is the local address. + +__Returns:__ +     [String] -- -##### [get_log](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/log.rb#L10) +##### [get_log](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/log.rb#L11) > def get_log(type) @@ -791,7 +770,7 @@ __Returns:__ -- -##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/log.rb#L20) +##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/log.rb#L23) > def get_available_log_types @@ -803,7 +782,7 @@ __Returns:__ -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/wait.rb#L6) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L6) > def initialize(opts = {}) @@ -815,7 +794,7 @@ __Returns:__ -- -##### [wait_true](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/wait.rb#L34) +##### [wait_true](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L34) > def wait_true(opts = {}) @@ -835,7 +814,7 @@ __Parameters:__ -- -##### [wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/wait.rb#L57) +##### [wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L57) > def wait(opts = {}) @@ -853,7 +832,7 @@ __Parameters:__ -- -##### [ignore](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L17) +##### [ignore](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L16) > def ignore @@ -861,7 +840,7 @@ Return yield and ignore any exceptions. -- -##### [back](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L24) +##### [back](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L23) > def back @@ -873,15 +852,19 @@ __Returns:__ -- -##### [session_id](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L29) +##### [session_id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L34) > def session_id For Sauce Labs reporting. Returns the current session id. +__Returns:__ + +     [String] + -- -##### [xpath](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L37) +##### [xpath](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L42) > def xpath(xpath_str) @@ -897,7 +880,7 @@ __Returns:__ -- -##### [xpaths](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L45) +##### [xpaths](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L50) > def xpaths(xpath_str) @@ -913,7 +896,7 @@ __Returns:__ -- -##### [result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L56) +##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L61) > def result @@ -921,7 +904,7 @@ Returns the value of attribute result -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L58) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L63) > def initialize @@ -933,7 +916,7 @@ __Returns:__ -- -##### [reset](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L62) +##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L67) > def reset @@ -941,7 +924,7 @@ __Returns:__ -- -##### [start_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L67) +##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L72) > def start_element(name, attrs = [], driver = $driver) @@ -949,7 +932,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html -- -##### [formatted_result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L73) +##### [formatted_result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L78) > def formatted_result @@ -957,36 +940,40 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html -- -##### [get_page_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L84) +##### [get_page_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L97) > def get_page_class Returns a string of class counts of visible elements. +__Returns:__ + +     [String] + -- -##### [page_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L95) +##### [page_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L122) > def page_class Count all classes on screen and print to stdout. Useful for appium_console. +__Returns:__ + +     [nil] + -- -##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L105) +##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L133) > def px_to_window_rel(opts = {}, driver = $driver) Converts pixel values to window relative values -```ruby -px_to_window_rel x: 50, y: 150 -``` - -- -##### [xml_keys](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L124) +##### [xml_keys](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L152) > def xml_keys(target) @@ -1002,7 +989,7 @@ __Returns:__ -- -##### [xml_values](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L132) +##### [xml_values](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L160) > def xml_values(target) @@ -1018,7 +1005,7 @@ __Returns:__ -- -##### [resolve_id](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L140) +##### [resolve_id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L168) > def resolve_id(id) @@ -1034,7 +1021,7 @@ __Returns:__ -- -##### [filter](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L146) +##### [filter](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L175) > def filter @@ -1042,7 +1029,7 @@ Returns the value of attribute filter -- -##### [filter=](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L149) +##### [filter=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L178) > def filter=(value) @@ -1050,7 +1037,7 @@ convert to string to support symbols -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L155) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L184) > def initialize @@ -1062,7 +1049,7 @@ __Returns:__ -- -##### [reset](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L160) +##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L189) > def reset @@ -1070,7 +1057,7 @@ __Returns:__ -- -##### [result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L166) +##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L195) > def result @@ -1078,7 +1065,7 @@ __Returns:__ -- -##### [start_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L182) +##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L211) > def start_element(name, attrs = []) @@ -1086,7 +1073,7 @@ __Returns:__ -- -##### [end_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L191) +##### [end_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L220) > def end_element(name) @@ -1094,7 +1081,7 @@ __Returns:__ -- -##### [characters](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L197) +##### [characters](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L226) > def characters(chars) @@ -1102,38 +1089,24 @@ __Returns:__ -- -##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/http_client.rb#L7) +##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/http_client.rb#L8) > DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze - +Default HTTP client inherit Appium::Core::Base::Http::Default, but has different DEFAULT_HEADERS -- -##### [pinch](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/multi_touch.rb#L53) +##### [pinch](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L51) > def pinch(percentage = 25, auto_perform = true, driver = $driver) Convenience method for pinching the screen. Places two fingers at the edges of the screen and brings them together. -```ruby -pinch 75 #=> Pinch the screen from the top right and bottom left corners -``` - Without auto_perform -```ruby -action = pinch 75, false #=> Pinch the screen from the top right and bottom left corners -action.perform #=> to 25% of its size. -``` - With driver -```ruby -driver = Appium::Driver.new(opts, false).start_driver -pinch 75, true, driver #=> Pinch the screen from the top right and bottom left corners -``` - __Parameters:__      [int] percentage - The percent size by which to shrink the screen when pinched. @@ -1144,30 +1117,16 @@ __Parameters:__ -- -##### [zoom](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/multi_touch.rb#L80) +##### [zoom](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L79) > def zoom(percentage = 200, auto_perform = true, driver = $driver) Convenience method for zooming the screen. Places two fingers at the edges of the screen and brings them together. -```ruby -action = zoom 200 #=> Zoom in the screen from the center until it doubles in size. -``` - Without auto_perform -```ruby -action = zoom 200, false #=> Zoom in the screen from the center until it doubles in size. -action.perform #=> to 25% of its size. -``` - With driver -```ruby -driver = Appium::Driver.new(opts, false).start_driver -pinch 200, true, driver #=> Zoom in the screen from the center until it doubles in size. -``` - __Parameters:__      [int] percentage - The percent size by which to shrink the screen when pinched. @@ -1178,7 +1137,7 @@ __Parameters:__ -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/multi_touch.rb#L85) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L84) > def initialize(driver = $driver) @@ -1190,7 +1149,7 @@ __Returns:__ -- -##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/touch_actions.rb#L30) +##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/touch_actions.rb#L33) > COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS @@ -1198,7 +1157,7 @@ __Returns:__ -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/touch_actions.rb#L44) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/touch_actions.rb#L47) > def initialize(driver = $driver) @@ -1210,7 +1169,7 @@ __Returns:__ -- -##### [for](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/android.rb#L15) android +##### [for](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/android.rb#L15) android > def self.for(target) @@ -1218,7 +1177,7 @@ __Returns:__ -- -##### [TextView](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L4) android +##### [TextView](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L4) android > TextView = 'android.widget.TextView'.freeze @@ -1226,7 +1185,7 @@ __Returns:__ -- -##### [text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L10) android +##### [text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L10) android > def text(value) @@ -1243,7 +1202,7 @@ __Returns:__ -- -##### [texts](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L19) android +##### [texts](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L19) android > def texts(value = false) @@ -1260,7 +1219,7 @@ __Returns:__ -- -##### [first_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L26) android +##### [first_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L26) android > def first_text @@ -1272,7 +1231,7 @@ __Returns:__ -- -##### [last_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L32) android +##### [last_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L32) android > def last_text @@ -1284,7 +1243,7 @@ __Returns:__ -- -##### [text_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L39) android +##### [text_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L39) android > def text_exact(value) @@ -1300,7 +1259,7 @@ __Returns:__ -- -##### [texts_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/text.rb#L46) android +##### [texts_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/text.rb#L46) android > def texts_exact(value) @@ -1316,7 +1275,7 @@ __Returns:__ -- -##### [result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L6) android +##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L6) android > def result @@ -1324,7 +1283,7 @@ Returns the value of attribute result -- -##### [keys](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L6) android +##### [keys](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L6) android > def keys @@ -1332,7 +1291,7 @@ Returns the value of attribute keys -- -##### [filter](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L6) android +##### [filter](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L6) android > def filter @@ -1340,7 +1299,7 @@ Returns the value of attribute filter -- -##### [filter=](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L9) android +##### [filter=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L9) android > def filter=(value) @@ -1348,7 +1307,7 @@ convert to string to support symbols -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L15) android +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L15) android > def initialize @@ -1360,7 +1319,7 @@ __Returns:__ -- -##### [reset](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L20) android +##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L20) android > def reset @@ -1368,7 +1327,7 @@ __Returns:__ -- -##### [start_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L26) android +##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L26) android > def start_element(name, attrs = [], driver = $driver) @@ -1376,7 +1335,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html -- -##### [source](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L76) android +##### [source](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L76) android > def source @@ -1388,7 +1347,7 @@ __Returns:__ -- -##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L86) android +##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L86) android > def get_android_inspect(class_name = false) @@ -1407,7 +1366,7 @@ __Returns:__ -- -##### [page](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L112) android +##### [page](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L112) android > def page(opts = {}) @@ -1426,7 +1385,7 @@ __Returns:__ -- -##### [current_app](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L124) android +##### [current_app](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L124) android > def current_app @@ -1436,7 +1395,7 @@ example line: -- -##### [id](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L148) android +##### [id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L148) android > def id(id) @@ -1452,7 +1411,7 @@ __Returns:__ -- -##### [ids](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L156) android +##### [ids](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L156) android > def ids(id) @@ -1468,7 +1427,7 @@ __Returns:__ -- -##### [ele_index](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L165) android +##### [ele_index](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L165) android > def ele_index(class_name, index) @@ -1486,7 +1445,7 @@ __Returns:__ -- -##### [first_ele](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L183) android +##### [first_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L183) android > def first_ele(class_name) @@ -1502,7 +1461,7 @@ __Returns:__ -- -##### [last_ele](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L190) android +##### [last_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L190) android > def last_ele(class_name) @@ -1518,7 +1477,7 @@ __Returns:__ -- -##### [tag](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L198) android +##### [tag](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L198) android > def tag(class_name) @@ -1534,7 +1493,7 @@ __Returns:__ -- -##### [tags](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L206) android +##### [tags](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L206) android > def tags(class_name) @@ -1550,7 +1509,7 @@ __Returns:__ -- -##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L249) android +##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L249) android > def string_visible_contains_xpath(class_name, value) @@ -1571,7 +1530,7 @@ __Returns:__ -- -##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L269) android +##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L269) android > def string_visible_contains(class_name, value) @@ -1592,7 +1551,7 @@ __Returns:__ -- -##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L287) android +##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L287) android > def complex_find_contains(class_name, value) @@ -1610,7 +1569,7 @@ __Returns:__ -- -##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L295) android +##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L295) android > def complex_finds_contains(class_name, value) @@ -1628,7 +1587,7 @@ __Returns:__ -- -##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L339) android +##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L339) android > def complex_find_exact(class_name, value) @@ -1646,7 +1605,7 @@ __Returns:__ -- -##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L347) android +##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L347) android > def complex_finds_exact(class_name, value) @@ -1664,7 +1623,7 @@ __Returns:__ -- -##### [get_source](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/common/helper.rb#L353) android +##### [get_source](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/common/helper.rb#L353) android > def get_source @@ -1676,7 +1635,7 @@ __Returns:__ -- -##### [alert_click](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/alert.rb#L6) android +##### [alert_click](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L6) android > def alert_click(value) @@ -1692,7 +1651,7 @@ __Returns:__ -- -##### [alert_accept](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/alert.rb#L13) android +##### [alert_accept](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L13) android > def alert_accept @@ -1705,7 +1664,7 @@ __Returns:__ -- -##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/alert.rb#L20) android +##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L20) android > def alert_accept_text @@ -1718,7 +1677,7 @@ __Returns:__ -- -##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/alert.rb#L27) android +##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L27) android > def alert_dismiss @@ -1731,7 +1690,7 @@ __Returns:__ -- -##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/alert.rb#L34) android +##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/alert.rb#L34) android > def alert_dismiss_text @@ -1744,7 +1703,7 @@ __Returns:__ -- -##### [Button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L3) android +##### [Button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L3) android > Button = 'android.widget.Button'.freeze @@ -1752,7 +1711,7 @@ __Returns:__ -- -##### [ImageButton](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L4) android +##### [ImageButton](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L4) android > ImageButton = 'android.widget.ImageButton'.freeze @@ -1760,7 +1719,7 @@ __Returns:__ -- -##### [button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L10) android +##### [button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L10) android > def button(value) @@ -1777,7 +1736,7 @@ __Returns:__ -- -##### [buttons](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L27) android +##### [buttons](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L27) android > def buttons(value = false) @@ -1794,7 +1753,7 @@ __Returns:__ -- -##### [first_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L34) android +##### [first_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L34) android > def first_button @@ -1806,7 +1765,7 @@ __Returns:__ -- -##### [last_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L40) android +##### [last_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L40) android > def last_button @@ -1818,7 +1777,7 @@ __Returns:__ -- -##### [button_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L56) android +##### [button_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L56) android > def button_exact(value) @@ -1834,7 +1793,7 @@ __Returns:__ -- -##### [buttons_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/button.rb#L63) android +##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/button.rb#L63) android > def buttons_exact(value) @@ -1850,7 +1809,7 @@ __Returns:__ -- -##### [find](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/generic.rb#L6) android +##### [find](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L6) android > def find(value) @@ -1866,7 +1825,7 @@ __Returns:__ -- -##### [finds](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/generic.rb#L13) android +##### [finds](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L13) android > def finds(value) @@ -1882,7 +1841,7 @@ __Returns:__ -- -##### [find_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/generic.rb#L20) android +##### [find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L20) android > def find_exact(value) @@ -1898,7 +1857,7 @@ __Returns:__ -- -##### [finds_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/generic.rb#L27) android +##### [finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L27) android > def finds_exact(value) @@ -1914,7 +1873,7 @@ __Returns:__ -- -##### [scroll_to](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/generic.rb#L40) android +##### [scroll_to](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L40) android > def scroll_to(text, scrollable_index = 0) @@ -1932,7 +1891,7 @@ __Returns:__ -- -##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/generic.rb#L58) android +##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/generic.rb#L58) android > def scroll_to_exact(text, scrollable_index = 0) @@ -1950,7 +1909,7 @@ __Returns:__ -- -##### [EditText](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L3) android +##### [EditText](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L3) android > EditText = 'android.widget.EditText'.freeze @@ -1958,7 +1917,7 @@ __Returns:__ -- -##### [textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L9) android +##### [textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L9) android > def textfield(value) @@ -1975,7 +1934,7 @@ __Returns:__ -- -##### [textfields](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L18) android +##### [textfields](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L18) android > def textfields(value = false) @@ -1992,7 +1951,7 @@ __Returns:__ -- -##### [first_textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L25) android +##### [first_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L25) android > def first_textfield @@ -2004,7 +1963,7 @@ __Returns:__ -- -##### [last_textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L31) android +##### [last_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L31) android > def last_textfield @@ -2016,7 +1975,7 @@ __Returns:__ -- -##### [textfield_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L38) android +##### [textfield_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L38) android > def textfield_exact(value) @@ -2032,7 +1991,7 @@ __Returns:__ -- -##### [textfields_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/element/textfield.rb#L45) android +##### [textfields_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/element/textfield.rb#L45) android > def textfields_exact(value) @@ -2048,7 +2007,7 @@ __Returns:__ -- -##### [for](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/bridge.rb#L7) android +##### [for](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/bridge.rb#L7) android > def self.for(target) @@ -2056,7 +2015,7 @@ __Returns:__ -- -##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/helper.rb#L13) android +##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L13) android > def string_visible_contains(class_name, value) @@ -2077,7 +2036,7 @@ __Returns:__ -- -##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/helper.rb#L31) android +##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L31) android > def complex_find_contains(class_name, value) @@ -2095,7 +2054,7 @@ __Returns:__ -- -##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/helper.rb#L41) android +##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L41) android > def complex_finds_contains(class_name, value) @@ -2113,7 +2072,7 @@ __Returns:__ -- -##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/helper.rb#L69) android +##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L69) android > def complex_find_exact(class_name, value) @@ -2131,7 +2090,7 @@ __Returns:__ -- -##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/helper.rb#L79) android +##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/helper.rb#L79) android > def complex_finds_exact(class_name, value) @@ -2149,7 +2108,7 @@ __Returns:__ -- -##### [button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android +##### [button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android > def button(value) @@ -2166,7 +2125,7 @@ __Returns:__ -- -##### [buttons](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/element/button.rb#L29) android +##### [buttons](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L29) android > def buttons(value = false) @@ -2183,7 +2142,7 @@ __Returns:__ -- -##### [first_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/element/button.rb#L36) android +##### [first_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L36) android > def first_button @@ -2195,7 +2154,7 @@ __Returns:__ -- -##### [last_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/element/button.rb#L43) android +##### [last_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L43) android > def last_button @@ -2207,7 +2166,7 @@ __Returns:__ -- -##### [button_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/element/button.rb#L60) android +##### [button_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L60) android > def button_exact(value) @@ -2223,7 +2182,7 @@ __Returns:__ -- -##### [buttons_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/android/uiautomator2/element/button.rb#L68) android +##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/android/uiautomator2/element/button.rb#L68) android > def buttons_exact(value) diff --git a/docs/ios_docs.md b/docs/ios_docs.md index 535f54af..895662c9 100644 --- a/docs/ios_docs.md +++ b/docs/ios_docs.md @@ -1,4 +1,4 @@ -##### [load_settings](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L45) +##### [load_settings](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L45) > def load_settings(opts = {}) @@ -27,7 +27,7 @@ __Returns:__ -- -##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L78) +##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L79) > def load_settings(opts = {}) @@ -56,7 +56,7 @@ __Returns:__ -- -##### [expand_required_files](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L83) +##### [expand_required_files](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L84) > def expand_required_files(base_dir, file_paths) @@ -74,7 +74,7 @@ __Returns:__ -- -##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L122) +##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L126) > def promote_singleton_appium_methods(modules, driver = $driver) @@ -90,9 +90,15 @@ if modules is a module instead of an array, then the constants of that module are promoted on. otherwise, the array of modules will be used as the promotion target. +__Parameters:__ + +     [Array] modules - An array of modules + +     [Driver] driver - A driver to extend for + -- -##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/appium.rb#L175) +##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/appium.rb#L181) > def promote_appium_methods(class_array, driver = $driver) @@ -100,29 +106,17 @@ Promote appium methods to class instance methods To promote methods to all classes: -```ruby -Appium.promote_appium_methods Object -``` - It's better to promote on specific classes instead of Object -```ruby -# promote on rspec -Appium.promote_appium_methods RSpec::Core::ExampleGroup -``` - -```ruby -# promote on minispec -Appium.promote_appium_methods Minitest::Spec -``` - __Parameters:__      [Array] class_array - An array of classes +     [Driver] driver - A driver to extend for + -- -##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L24) +##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L24) > def global_webdriver_http_sleep @@ -130,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call. -- -##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L24) +##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L24) > def global_webdriver_http_sleep=(value) @@ -138,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call. -- -##### [sauce](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L27) +##### [sauce](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L27) > def sauce @@ -146,7 +140,7 @@ SauceLab's settings -- -##### [sauce_username](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L30) +##### [sauce_username](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L30) > def sauce_username @@ -155,7 +149,7 @@ same as @sauce.username -- -##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L33) +##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L33) > def sauce_access_key @@ -164,7 +158,7 @@ same as @sauce.access_key -- -##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L36) +##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L36) > def sauce_endpoint @@ -173,7 +167,7 @@ same as @sauce.endpoint -- -##### [caps](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L39) +##### [caps](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L39) > def caps @@ -181,7 +175,7 @@ from Core -- -##### [custom_url](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L40) +##### [custom_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L40) > def custom_url @@ -189,7 +183,7 @@ Returns the value of attribute custom_url -- -##### [export_session](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L41) +##### [export_session](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L41) > def export_session @@ -197,7 +191,7 @@ Returns the value of attribute export_session -- -##### [default_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L42) +##### [default_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L42) > def default_wait @@ -205,7 +199,7 @@ Returns the value of attribute default_wait -- -##### [appium_port](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L43) +##### [appium_port](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L43) > def appium_port @@ -213,7 +207,7 @@ Returns the value of attribute appium_port -- -##### [appium_device](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L44) +##### [appium_device](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L44) > def appium_device @@ -221,7 +215,7 @@ Returns the value of attribute appium_device -- -##### [automation_name](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L45) +##### [automation_name](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L45) > def automation_name @@ -229,7 +223,7 @@ Returns the value of attribute automation_name -- -##### [listener](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L46) +##### [listener](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L46) > def listener @@ -237,7 +231,7 @@ Returns the value of attribute listener -- -##### [http_client](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L47) +##### [http_client](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L47) > def http_client @@ -245,7 +239,7 @@ Returns the value of attribute http_client -- -##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L48) +##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L48) > def appium_wait_timeout @@ -253,7 +247,7 @@ Returns the value of attribute appium_wait_timeout -- -##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L49) +##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L49) > def appium_wait_interval @@ -261,7 +255,7 @@ Returns the value of attribute appium_wait_interval -- -##### [appium_server_status](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L52) +##### [appium_server_status](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L52) > def appium_server_status @@ -269,7 +263,7 @@ Appium's server version -- -##### [appium_debug](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L54) +##### [appium_debug](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L54) > def appium_debug @@ -277,7 +271,7 @@ Boolean debug mode for the Appium Ruby bindings -- -##### [driver](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L57) +##### [driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L57) > def driver @@ -289,7 +283,7 @@ __Returns:__ -- -##### [core](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L59) +##### [core](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L59) > def core @@ -297,7 +291,7 @@ Instance of Appium::Core::Driver -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L113) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L110) > def initialize(opts = {}, global_driver = nil) @@ -316,7 +310,7 @@ __Returns:__ -- -##### [driver_attributes](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L218) +##### [driver_attributes](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L215) > def driver_attributes @@ -324,7 +318,7 @@ Returns a hash of the driver attributes -- -##### [device_is_android?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L237) +##### [device_is_android?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L234) > def device_is_android? @@ -336,7 +330,7 @@ __Returns:__ -- -##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L241) +##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L238) > def device_is_ios? @@ -348,7 +342,7 @@ __Returns:__ -- -##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L245) +##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L242) > def device_is_windows? @@ -360,7 +354,7 @@ __Returns:__ -- -##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L251) +##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L248) > def automation_name_is_uiautomator2? @@ -372,7 +366,7 @@ __Returns:__ -- -##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L257) +##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L254) > def automation_name_is_espresso? @@ -384,7 +378,7 @@ __Returns:__ -- -##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L263) +##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L260) > def automation_name_is_xcuitest? @@ -396,7 +390,7 @@ __Returns:__ -- -##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L270) +##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L267) > def check_server_version_xcuitest @@ -409,28 +403,19 @@ __Returns:__ -- -##### [appium_server_version](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L292) +##### [appium_server_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L288) > def appium_server_version Returns the server's version info -```ruby -{ - "build" => { - "version" => "0.18.1", - "revision" => "d242ebcfd92046a974347ccc3a28f0e898595198" - } -} -``` - __Returns:__      [Hash] -- -##### [platform_version](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L302) +##### [platform_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L298) > def platform_version @@ -442,25 +427,19 @@ __Returns:__ -- -##### [appium_client_version](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L321) +##### [appium_client_version](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L317) > def appium_client_version Returns the client's version info -```ruby -{ - "version" => "9.1.1" -} -``` - __Returns:__      [Hash] -- -##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L333) +##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L329) > def self.absolute_app_path(opts) @@ -477,7 +456,7 @@ __Returns:__ -- -##### [server_url](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L366) +##### [server_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L362) > def server_url @@ -489,7 +468,7 @@ __Returns:__ -- -##### [restart](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L374) +##### [restart](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L370) > def restart @@ -501,14 +480,12 @@ __Returns:__ -- -##### [screenshot](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L385) +##### [screenshot](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L383) > def screenshot(png_save_path) Takes a png screenshot and saves to the target path. -Example: screenshot '/tmp/hi.png' - __Parameters:__      [String] png_save_path - the full path to save the png @@ -519,7 +496,7 @@ __Returns:__ -- -##### [driver_quit](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L391) +##### [driver_quit](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L389) > def driver_quit @@ -531,7 +508,7 @@ __Returns:__ -- -##### [quit_driver](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L394) +##### [quit_driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L392) > def driver_quit @@ -543,7 +520,7 @@ __Returns:__ -- -##### [window_size](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L403) +##### [window_size](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L403) > def window_size @@ -555,7 +532,7 @@ __Returns:__ -- -##### [start_driver](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L433) +##### [start_driver](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L432) > def start_driver(http_client_ops = @@ -572,7 +549,7 @@ __Returns:__ -- -##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L457) +##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L456) > def set_implicit_wait(wait) @@ -580,7 +557,7 @@ To ignore error for Espresso Driver -- -##### [no_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L467) +##### [no_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L466) > def no_wait @@ -588,18 +565,12 @@ Set implicit wait to zero. -- -##### [set_wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L481) +##### [set_wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L480) > def set_wait(timeout = nil) Set implicit wait. Default to @core.default_wait. -```ruby -set_wait 2 -set_wait # @core.default_wait - -``` - __Parameters:__      [Integer] timeout - the timeout in seconds @@ -610,7 +581,7 @@ __Returns:__ -- -##### [exists](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L498) +##### [exists](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L497) > def exists(pre_check = 0, post_check = @core.default_wait) @@ -634,7 +605,7 @@ __Returns:__ -- -##### [execute_script](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L522) +##### [execute_script](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L521) > def execute_script(script, *args) @@ -652,7 +623,7 @@ __Returns:__ -- -##### [find_elements](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L546) +##### [find_elements](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L543) > def find_elements(*args) @@ -672,7 +643,7 @@ __Returns:__ -- -##### [find_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L562) +##### [find_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L558) > def find_element(*args) @@ -690,7 +661,7 @@ __Returns:__ -- -##### [set_location](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L575) +##### [set_location](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L571) > def set_location(opts = {}) @@ -706,7 +677,7 @@ __Returns:__ -- -##### [x](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/driver.rb#L585) +##### [x](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/driver.rb#L581) > def x @@ -719,7 +690,7 @@ __Returns:__ -- -##### [username](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L4) +##### [username](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L4) > def username @@ -727,7 +698,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US -- -##### [access_key](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L6) +##### [access_key](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L6) > def access_key @@ -735,31 +706,35 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_ -- -##### [endpoint](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L8) +##### [endpoint](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L8) > def endpoint -Override the Sauce Appium endpoint to allow e.g. TestObject tests +Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'ondemand.saucelabs.com:443/wd/hub'. -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L10) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L33) > def initialize(appium_lib_opts) +Create a SauceLabs instance to manage sauce labs related attributes. + +__Parameters:__ +     [Hash] appium_lib_opts - Appium library parameter __Returns:__ -     [SauceLabs] a new instance of SauceLabs +     [Appium::SauceLabs] -- -##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L21) +##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L53) > def sauce_server_url? - +Return true if an instance of Appium::SauceLabs has sauce_username and sauce_access_key. __Returns:__ @@ -767,15 +742,19 @@ __Returns:__ -- -##### [server_url](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/sauce_labs.rb#L25) +##### [server_url](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/sauce_labs.rb#L66) > def server_url +Return a particular server url to access to. Default is the local address. + +__Returns:__ +     [String] -- -##### [get_log](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/log.rb#L10) +##### [get_log](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/log.rb#L11) > def get_log(type) @@ -791,7 +770,7 @@ __Returns:__ -- -##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/log.rb#L20) +##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/log.rb#L23) > def get_available_log_types @@ -803,7 +782,7 @@ __Returns:__ -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/wait.rb#L6) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L6) > def initialize(opts = {}) @@ -815,7 +794,7 @@ __Returns:__ -- -##### [wait_true](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/wait.rb#L34) +##### [wait_true](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L34) > def wait_true(opts = {}) @@ -835,7 +814,7 @@ __Parameters:__ -- -##### [wait](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/wait.rb#L57) +##### [wait](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/wait.rb#L57) > def wait(opts = {}) @@ -853,7 +832,7 @@ __Parameters:__ -- -##### [ignore](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L17) +##### [ignore](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L16) > def ignore @@ -861,7 +840,7 @@ Return yield and ignore any exceptions. -- -##### [back](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L24) +##### [back](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L23) > def back @@ -873,15 +852,19 @@ __Returns:__ -- -##### [session_id](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L29) +##### [session_id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L34) > def session_id For Sauce Labs reporting. Returns the current session id. +__Returns:__ + +     [String] + -- -##### [xpath](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L37) +##### [xpath](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L42) > def xpath(xpath_str) @@ -897,7 +880,7 @@ __Returns:__ -- -##### [xpaths](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L45) +##### [xpaths](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L50) > def xpaths(xpath_str) @@ -913,7 +896,7 @@ __Returns:__ -- -##### [result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L56) +##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L61) > def result @@ -921,7 +904,7 @@ Returns the value of attribute result -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L58) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L63) > def initialize @@ -933,7 +916,7 @@ __Returns:__ -- -##### [reset](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L62) +##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L67) > def reset @@ -941,7 +924,7 @@ __Returns:__ -- -##### [start_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L67) +##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L72) > def start_element(name, attrs = [], driver = $driver) @@ -949,7 +932,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html -- -##### [formatted_result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L73) +##### [formatted_result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L78) > def formatted_result @@ -957,36 +940,40 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html -- -##### [get_page_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L84) +##### [get_page_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L97) > def get_page_class Returns a string of class counts of visible elements. +__Returns:__ + +     [String] + -- -##### [page_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L95) +##### [page_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L122) > def page_class Count all classes on screen and print to stdout. Useful for appium_console. +__Returns:__ + +     [nil] + -- -##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L105) +##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L133) > def px_to_window_rel(opts = {}, driver = $driver) Converts pixel values to window relative values -```ruby -px_to_window_rel x: 50, y: 150 -``` - -- -##### [xml_keys](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L124) +##### [xml_keys](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L152) > def xml_keys(target) @@ -1002,7 +989,7 @@ __Returns:__ -- -##### [xml_values](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L132) +##### [xml_values](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L160) > def xml_values(target) @@ -1018,7 +1005,7 @@ __Returns:__ -- -##### [resolve_id](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L140) +##### [resolve_id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L168) > def resolve_id(id) @@ -1034,7 +1021,7 @@ __Returns:__ -- -##### [filter](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L146) +##### [filter](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L175) > def filter @@ -1042,7 +1029,7 @@ Returns the value of attribute filter -- -##### [filter=](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L149) +##### [filter=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L178) > def filter=(value) @@ -1050,7 +1037,7 @@ convert to string to support symbols -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L155) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L184) > def initialize @@ -1062,7 +1049,7 @@ __Returns:__ -- -##### [reset](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L160) +##### [reset](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L189) > def reset @@ -1070,7 +1057,7 @@ __Returns:__ -- -##### [result](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L166) +##### [result](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L195) > def result @@ -1078,7 +1065,7 @@ __Returns:__ -- -##### [start_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L182) +##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L211) > def start_element(name, attrs = []) @@ -1086,7 +1073,7 @@ __Returns:__ -- -##### [end_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L191) +##### [end_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L220) > def end_element(name) @@ -1094,7 +1081,7 @@ __Returns:__ -- -##### [characters](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/helper.rb#L197) +##### [characters](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/helper.rb#L226) > def characters(chars) @@ -1102,38 +1089,24 @@ __Returns:__ -- -##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/http_client.rb#L7) +##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/http_client.rb#L8) > DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze - +Default HTTP client inherit Appium::Core::Base::Http::Default, but has different DEFAULT_HEADERS -- -##### [pinch](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/multi_touch.rb#L53) +##### [pinch](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L51) > def pinch(percentage = 25, auto_perform = true, driver = $driver) Convenience method for pinching the screen. Places two fingers at the edges of the screen and brings them together. -```ruby -pinch 75 #=> Pinch the screen from the top right and bottom left corners -``` - Without auto_perform -```ruby -action = pinch 75, false #=> Pinch the screen from the top right and bottom left corners -action.perform #=> to 25% of its size. -``` - With driver -```ruby -driver = Appium::Driver.new(opts, false).start_driver -pinch 75, true, driver #=> Pinch the screen from the top right and bottom left corners -``` - __Parameters:__      [int] percentage - The percent size by which to shrink the screen when pinched. @@ -1144,30 +1117,16 @@ __Parameters:__ -- -##### [zoom](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/multi_touch.rb#L80) +##### [zoom](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L79) > def zoom(percentage = 200, auto_perform = true, driver = $driver) Convenience method for zooming the screen. Places two fingers at the edges of the screen and brings them together. -```ruby -action = zoom 200 #=> Zoom in the screen from the center until it doubles in size. -``` - Without auto_perform -```ruby -action = zoom 200, false #=> Zoom in the screen from the center until it doubles in size. -action.perform #=> to 25% of its size. -``` - With driver -```ruby -driver = Appium::Driver.new(opts, false).start_driver -pinch 200, true, driver #=> Zoom in the screen from the center until it doubles in size. -``` - __Parameters:__      [int] percentage - The percent size by which to shrink the screen when pinched. @@ -1178,7 +1137,7 @@ __Parameters:__ -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/multi_touch.rb#L85) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/multi_touch.rb#L84) > def initialize(driver = $driver) @@ -1190,7 +1149,7 @@ __Returns:__ -- -##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/touch_actions.rb#L30) +##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/touch_actions.rb#L33) > COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS @@ -1198,7 +1157,7 @@ __Returns:__ -- -##### [initialize](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/common/touch_actions.rb#L44) +##### [initialize](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/common/touch_actions.rb#L47) > def initialize(driver = $driver) @@ -1210,7 +1169,7 @@ __Returns:__ -- -##### [for](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/ios.rb#L15) ios +##### [for](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/ios.rb#L15) ios > def self.for(target) @@ -1218,7 +1177,7 @@ __Returns:__ -- -##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L4) ios +##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L4) ios > UIAStaticText = 'UIAStaticText'.freeze @@ -1226,7 +1185,7 @@ __Returns:__ -- -##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L5) ios +##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L5) ios > XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze @@ -1234,7 +1193,7 @@ __Returns:__ -- -##### [static_text_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L8) ios +##### [static_text_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L8) ios > def static_text_class @@ -1246,7 +1205,7 @@ __Returns:__ -- -##### [text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L16) ios +##### [text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L16) ios > def text(value) @@ -1263,7 +1222,7 @@ __Returns:__ -- -##### [texts](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L25) ios +##### [texts](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L25) ios > def texts(value = false) @@ -1280,7 +1239,7 @@ __Returns:__ -- -##### [first_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L32) ios +##### [first_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L32) ios > def first_text @@ -1292,7 +1251,7 @@ __Returns:__ -- -##### [last_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L38) ios +##### [last_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L38) ios > def last_text @@ -1304,7 +1263,7 @@ __Returns:__ -- -##### [text_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L45) ios +##### [text_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L45) ios > def text_exact(value) @@ -1320,7 +1279,7 @@ __Returns:__ -- -##### [texts_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/text.rb#L52) ios +##### [texts_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/text.rb#L52) ios > def texts_exact(value) @@ -1336,7 +1295,7 @@ __Returns:__ -- -##### [filter](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L4) ios +##### [filter](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L5) ios > def filter @@ -1344,7 +1303,7 @@ Returns the value of attribute filter -- -##### [filter=](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L4) ios +##### [filter=](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L5) ios > def filter=(value) @@ -1356,7 +1315,7 @@ __Parameters:__ -- -##### [start_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L6) ios +##### [start_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L7) ios > def start_element(type, attrs = []) @@ -1364,7 +1323,7 @@ __Parameters:__ -- -##### [ios_password](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L43) ios +##### [ios_password](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L44) ios > def ios_password(length = 1) @@ -1382,7 +1341,7 @@ __Returns:__ -- -##### [page](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L59) ios +##### [page](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L60) ios > def page(opts = {}) @@ -1400,7 +1359,7 @@ __Returns:__ -- -##### [source_window](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L83) ios +##### [source_window](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L84) ios > def source_window(_window_number = nil) @@ -1412,7 +1371,7 @@ __Returns:__ -- -##### [id](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L91) ios +##### [id](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L92) ios > def id(id) @@ -1428,7 +1387,7 @@ __Returns:__ -- -##### [ele_index](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L99) ios +##### [ele_index](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L100) ios > def ele_index(class_name, index) @@ -1446,7 +1405,7 @@ __Returns:__ -- -##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L127) ios +##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L128) ios > def find_ele_by_attr(class_name, attr, value) @@ -1468,7 +1427,7 @@ __Returns:__ -- -##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L138) ios +##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L139) ios > def find_eles_by_attr(class_name, attr, value) @@ -1490,7 +1449,7 @@ __Returns:__ -- -##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L151) ios +##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L152) ios > def find_ele_by_predicate(class_name: '*', value:) @@ -1507,7 +1466,7 @@ __Returns:__ -- -##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L162) ios +##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L163) ios > def find_eles_by_predicate(class_name: '*', value:) @@ -1526,7 +1485,7 @@ __Returns:__ -- -##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L178) ios +##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L179) ios > def find_ele_by_attr_include(class_name, attr, value) @@ -1547,7 +1506,7 @@ __Returns:__ -- -##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L188) ios +##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L189) ios > def find_eles_by_attr_include(class_name, attr, value) @@ -1568,7 +1527,7 @@ __Returns:__ -- -##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L196) ios +##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L197) ios > def find_ele_by_predicate_include(class_name: '*', value:) @@ -1585,7 +1544,7 @@ __Returns:__ -- -##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L207) ios +##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L208) ios > def find_eles_by_predicate_include(class_name: '*', value:) @@ -1604,7 +1563,7 @@ __Returns:__ -- -##### [first_ele](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L220) ios +##### [first_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L221) ios > def first_ele(class_name) @@ -1620,7 +1579,7 @@ __Returns:__ -- -##### [last_ele](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L227) ios +##### [last_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L228) ios > def last_ele(class_name) @@ -1636,7 +1595,7 @@ __Returns:__ -- -##### [tag](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L235) ios +##### [tag](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L236) ios > def tag(class_name) @@ -1652,7 +1611,7 @@ __Returns:__ -- -##### [tags](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L243) ios +##### [tags](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L244) ios > def tags(class_name) @@ -1668,7 +1627,7 @@ __Returns:__ -- -##### [tags_include](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L254) ios +##### [tags_include](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L255) ios > def tags_include(class_names:, value: nil) @@ -1688,7 +1647,7 @@ __Returns:__ -- -##### [tags_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L269) ios +##### [tags_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L270) ios > def tags_exact(class_names:, value: nil) @@ -1708,7 +1667,7 @@ __Returns:__ -- -##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L306) ios +##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L307) ios > def ele_by_json_visible_contains(element, value) @@ -1727,7 +1686,7 @@ __Returns:__ -- -##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L315) ios +##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L316) ios > def eles_by_json_visible_contains(element, value) @@ -1746,7 +1705,7 @@ __Returns:__ -- -##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L345) ios +##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L346) ios > def ele_by_json_visible_exact(element, value) @@ -1765,7 +1724,7 @@ __Returns:__ -- -##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L354) ios +##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L355) ios > def eles_by_json_visible_exact(element, value) @@ -1784,7 +1743,7 @@ __Returns:__ -- -##### [_all_pred](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L363) ios +##### [_all_pred](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L364) ios > def _all_pred(opts) @@ -1794,7 +1753,7 @@ visible - if true, only visible elements are returned. default true -- -##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L376) ios +##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L377) ios > def ele_with_pred(opts) @@ -1810,7 +1769,7 @@ __Returns:__ -- -##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L387) ios +##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L388) ios > def eles_with_pred(opts) @@ -1826,7 +1785,7 @@ __Returns:__ -- -##### [source](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L393) ios +##### [source](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L394) ios > def source @@ -1838,7 +1797,7 @@ __Returns:__ -- -##### [_validate_object](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L397) ios +##### [_validate_object](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L398) ios > def _validate_object(*objects) @@ -1846,7 +1805,7 @@ __Returns:__ -- -##### [_by_json](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L446) ios +##### [_by_json](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L447) ios > def _by_json(opts) @@ -1881,7 +1840,7 @@ opts = { -- -##### [eles_by_json](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L496) ios +##### [eles_by_json](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L497) ios > def eles_by_json(opts) @@ -1900,7 +1859,7 @@ eles_by_json({ -- -##### [ele_by_json](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L502) ios +##### [ele_by_json](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L503) ios > def ele_by_json(opts) @@ -1908,7 +1867,7 @@ see eles_by_json -- -##### [get_source](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/common/helper.rb#L512) ios +##### [get_source](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/common/helper.rb#L513) ios > def get_source @@ -1921,7 +1880,7 @@ __Returns:__ -- -##### [alert_accept](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/alert.rb#L5) ios +##### [alert_accept](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/alert.rb#L5) ios > def alert_accept @@ -1933,7 +1892,7 @@ __Returns:__ -- -##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/alert.rb#L13) ios +##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/alert.rb#L13) ios > def alert_dismiss @@ -1945,7 +1904,7 @@ __Returns:__ -- -##### [UIAButton](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L4) ios +##### [UIAButton](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L4) ios > UIAButton = 'UIAButton'.freeze @@ -1953,7 +1912,7 @@ __Returns:__ -- -##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L5) ios +##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L5) ios > XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze @@ -1961,7 +1920,7 @@ __Returns:__ -- -##### [button_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L8) ios +##### [button_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L8) ios > def button_class @@ -1973,7 +1932,7 @@ __Returns:__ -- -##### [button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L16) ios +##### [button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L16) ios > def button(value) @@ -1990,7 +1949,7 @@ __Returns:__ -- -##### [buttons](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L26) ios +##### [buttons](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L26) ios > def buttons(value = false) @@ -2007,7 +1966,7 @@ __Returns:__ -- -##### [first_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L33) ios +##### [first_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L33) ios > def first_button @@ -2019,7 +1978,7 @@ __Returns:__ -- -##### [last_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L41) ios +##### [last_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L41) ios > def last_button @@ -2033,7 +1992,7 @@ __Returns:__ -- -##### [button_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L48) ios +##### [button_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L48) ios > def button_exact(value) @@ -2049,7 +2008,7 @@ __Returns:__ -- -##### [buttons_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/button.rb#L55) ios +##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/button.rb#L55) ios > def buttons_exact(value) @@ -2065,7 +2024,7 @@ __Returns:__ -- -##### [find](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/generic.rb#L6) ios +##### [find](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/generic.rb#L6) ios > def find(value) @@ -2081,7 +2040,7 @@ __Returns:__ -- -##### [finds](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/generic.rb#L13) ios +##### [finds](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/generic.rb#L13) ios > def finds(value) @@ -2097,7 +2056,7 @@ __Returns:__ -- -##### [find_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/generic.rb#L20) ios +##### [find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/generic.rb#L20) ios > def find_exact(value) @@ -2113,7 +2072,7 @@ __Returns:__ -- -##### [finds_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/generic.rb#L27) ios +##### [finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/generic.rb#L27) ios > def finds_exact(value) @@ -2129,7 +2088,7 @@ __Returns:__ -- -##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/generic.rb#L33) ios +##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/generic.rb#L33) ios > def raise_error_if_no_element(element) @@ -2137,7 +2096,7 @@ __Returns:__ -- -##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/generic.rb#L40) ios +##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/generic.rb#L40) ios > def select_visible_elements(elements) @@ -2145,7 +2104,7 @@ Return visible elements. -- -##### [for](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/bridge.rb#L7) ios +##### [for](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/bridge.rb#L7) ios > def self.for(target) @@ -2153,7 +2112,7 @@ Return visible elements. -- -##### [last_ele](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/helper.rb#L26) ios +##### [last_ele](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/helper.rb#L26) ios > def last_ele(class_name) @@ -2169,7 +2128,7 @@ __Returns:__ -- -##### [tag](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/helper.rb#L36) ios +##### [tag](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/helper.rb#L36) ios > def tag(class_name) @@ -2185,7 +2144,7 @@ __Returns:__ -- -##### [tags](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/helper.rb#L44) ios +##### [tags](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/helper.rb#L44) ios > def tags(class_name) @@ -2201,7 +2160,7 @@ __Returns:__ -- -##### [tags_include](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/helper.rb#L56) ios +##### [tags_include](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/helper.rb#L56) ios > def tags_include(class_names:, value: nil) @@ -2221,7 +2180,7 @@ __Returns:__ -- -##### [tags_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/helper.rb#L79) ios +##### [tags_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/helper.rb#L79) ios > def tags_exact(class_names:, value: nil) @@ -2241,7 +2200,7 @@ __Returns:__ -- -##### [UIATextField](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L3) ios +##### [UIATextField](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L3) ios > UIATextField = 'UIATextField'.freeze @@ -2249,7 +2208,7 @@ __Returns:__ -- -##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L4) ios +##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L4) ios > UIASecureTextField = 'UIASecureTextField'.freeze @@ -2257,7 +2216,7 @@ __Returns:__ -- -##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L6) ios +##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L6) ios > XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze @@ -2265,7 +2224,7 @@ __Returns:__ -- -##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L7) ios +##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L7) ios > XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze @@ -2273,7 +2232,7 @@ __Returns:__ -- -##### [text_field_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L10) ios +##### [text_field_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L10) ios > def text_field_class @@ -2285,7 +2244,7 @@ __Returns:__ -- -##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L15) ios +##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L15) ios > def secure_text_field_class @@ -2297,7 +2256,7 @@ __Returns:__ -- -##### [textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L24) ios +##### [textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L24) ios > def textfield(value) @@ -2315,7 +2274,7 @@ __Returns:__ -- -##### [textfields](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L42) ios +##### [textfields](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L42) ios > def textfields(value = false) @@ -2332,7 +2291,7 @@ __Returns:__ -- -##### [first_textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L49) ios +##### [first_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L49) ios > def first_textfield @@ -2344,7 +2303,7 @@ __Returns:__ -- -##### [last_textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L55) ios +##### [last_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L55) ios > def last_textfield @@ -2356,7 +2315,7 @@ __Returns:__ -- -##### [textfield_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L64) ios +##### [textfield_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L64) ios > def textfield_exact(value) @@ -2372,7 +2331,7 @@ __Returns:__ -- -##### [textfields_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L71) ios +##### [textfields_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L71) ios > def textfields_exact(value) @@ -2388,7 +2347,7 @@ __Returns:__ -- -##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L78) ios +##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L78) ios > def _textfield_visible @@ -2396,7 +2355,7 @@ Appium -- -##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L83) ios +##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L83) ios > def _textfield_exact_string(value) @@ -2404,7 +2363,7 @@ Appium -- -##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/element/textfield.rb#L90) ios +##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/element/textfield.rb#L90) ios > def _textfield_contains_string(value) @@ -2412,7 +2371,7 @@ Appium -- -##### [static_text_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L9) ios +##### [static_text_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L9) ios > def static_text_class @@ -2424,7 +2383,7 @@ __Returns:__ -- -##### [text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L17) ios +##### [text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L17) ios > def text(value) @@ -2441,7 +2400,7 @@ __Returns:__ -- -##### [texts](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L26) ios +##### [texts](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L26) ios > def texts(value = false) @@ -2458,7 +2417,7 @@ __Returns:__ -- -##### [first_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L34) ios +##### [first_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L34) ios > def first_text @@ -2470,7 +2429,7 @@ __Returns:__ -- -##### [last_text](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L40) ios +##### [last_text](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L40) ios > def last_text @@ -2482,7 +2441,7 @@ __Returns:__ -- -##### [text_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L47) ios +##### [text_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L47) ios > def text_exact(value) @@ -2498,7 +2457,7 @@ __Returns:__ -- -##### [texts_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/text.rb#L54) ios +##### [texts_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/text.rb#L54) ios > def texts_exact(value) @@ -2514,7 +2473,7 @@ __Returns:__ -- -##### [button_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L9) ios +##### [button_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L9) ios > def button_class @@ -2526,7 +2485,7 @@ __Returns:__ -- -##### [button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L17) ios +##### [button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L17) ios > def button(value) @@ -2543,7 +2502,7 @@ __Returns:__ -- -##### [buttons](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L27) ios +##### [buttons](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L27) ios > def buttons(value = false) @@ -2560,7 +2519,7 @@ __Returns:__ -- -##### [first_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L35) ios +##### [first_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L35) ios > def first_button @@ -2572,7 +2531,7 @@ __Returns:__ -- -##### [last_button](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L43) ios +##### [last_button](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L43) ios > def last_button @@ -2586,7 +2545,7 @@ __Returns:__ -- -##### [button_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L50) ios +##### [button_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L50) ios > def button_exact(value) @@ -2602,7 +2561,7 @@ __Returns:__ -- -##### [buttons_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/button.rb#L57) ios +##### [buttons_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/button.rb#L57) ios > def buttons_exact(value) @@ -2618,7 +2577,7 @@ __Returns:__ -- -##### [find](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/generic.rb#L8) ios +##### [find](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/generic.rb#L8) ios > def find(value) @@ -2634,7 +2593,7 @@ __Returns:__ -- -##### [finds](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/generic.rb#L15) ios +##### [finds](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/generic.rb#L15) ios > def finds(value) @@ -2650,7 +2609,7 @@ __Returns:__ -- -##### [find_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/generic.rb#L23) ios +##### [find_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/generic.rb#L23) ios > def find_exact(value) @@ -2666,7 +2625,7 @@ __Returns:__ -- -##### [finds_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/generic.rb#L30) ios +##### [finds_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/generic.rb#L30) ios > def finds_exact(value) @@ -2682,7 +2641,7 @@ __Returns:__ -- -##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/generic.rb#L37) ios +##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/generic.rb#L37) ios > def raise_error_if_no_element(element) @@ -2690,7 +2649,7 @@ __Returns:__ -- -##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/generic.rb#L44) ios +##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/generic.rb#L44) ios > def select_visible_elements(elements) @@ -2698,7 +2657,7 @@ Return visible elements. -- -##### [swipe](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L11) ios +##### [swipe](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L11) ios > def swipe(direction:, element: nil) @@ -2712,7 +2671,7 @@ __Parameters:__ -- -##### [scroll](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L29) ios +##### [scroll](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L29) ios > def scroll(direction:, name: nil, element: nil, to_visible: nil, predicate_string: nil) @@ -2726,7 +2685,7 @@ __Parameters:__ -- -##### [pinch](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L48) ios +##### [pinch](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L48) ios > def pinch(scale:, velocity: 1.0, element: nil) @@ -2742,7 +2701,7 @@ __Parameters:__ -- -##### [double_tap](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L63) ios +##### [double_tap](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L63) ios > def double_tap(x: nil, y: nil, element: nil) @@ -2758,7 +2717,7 @@ __Parameters:__ -- -##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L80) ios +##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L80) ios > def touch_and_hold(x: nil, y: nil, element: nil, duration: 1.0) @@ -2776,7 +2735,7 @@ __Parameters:__ -- -##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L93) ios +##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L93) ios > def two_finger_tap(element:) @@ -2792,7 +2751,7 @@ two_finger_tap element: find_element(:accessibility_id, "some item") -- -##### [tap](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L108) ios +##### [tap](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L108) ios > def tap(x:, y:, element: nil) @@ -2808,7 +2767,7 @@ __Parameters:__ -- -##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L128) ios +##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L128) ios > def drag_from_to_for_duration(from_x:, from_y:, to_x:, to_y:, duration: 1.0, element: nil) @@ -2831,7 +2790,7 @@ drag point should be before to start dragging. Mandatory parameter -- -##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L145) ios +##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L145) ios > def select_picker_wheel(element:, order:, offset: nil) @@ -2848,7 +2807,7 @@ __Parameters:__ -- -##### [alert](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/gestures.rb#L163) ios +##### [alert](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/gestures.rb#L163) ios > def alert(action:, button_label: nil) @@ -2863,7 +2822,7 @@ This is an optional parameter and is only valid in combination with accept and d -- -##### [text_field_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L9) ios +##### [text_field_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L9) ios > def text_field_class @@ -2875,7 +2834,7 @@ __Returns:__ -- -##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L14) ios +##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L14) ios > def secure_text_field_class @@ -2887,7 +2846,7 @@ __Returns:__ -- -##### [textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L23) ios +##### [textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L23) ios > def textfield(value) @@ -2905,7 +2864,7 @@ __Returns:__ -- -##### [textfields](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L41) ios +##### [textfields](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L41) ios > def textfields(value = false) @@ -2922,7 +2881,7 @@ __Returns:__ -- -##### [first_textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L50) ios +##### [first_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L50) ios > def first_textfield @@ -2934,7 +2893,7 @@ __Returns:__ -- -##### [last_textfield](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L56) ios +##### [last_textfield](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L56) ios > def last_textfield @@ -2946,7 +2905,7 @@ __Returns:__ -- -##### [textfield_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L65) ios +##### [textfield_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L65) ios > def textfield_exact(value) @@ -2962,7 +2921,7 @@ __Returns:__ -- -##### [textfields_exact](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/element/textfield.rb#L72) ios +##### [textfields_exact](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/element/textfield.rb#L72) ios > def textfields_exact(value) @@ -2978,7 +2937,7 @@ __Returns:__ -- -##### [set_pasteboard](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/pasteboard.rb#L12) ios +##### [set_pasteboard](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/pasteboard.rb#L12) ios > def set_pasteboard(content:, encoding: nil) @@ -2993,7 +2952,7 @@ The parameter is mandatory -- -##### [get_pasteboard](https://github.com/appium/ruby_lib/blob/63a853ea755edb68a3469bd6647f23530c746853/lib/appium_lib/ios/xcuitest/command/pasteboard.rb#L24) ios +##### [get_pasteboard](https://github.com/appium/ruby_lib/blob/b9b8784697d9fbe73d3883cf42d260f19138d8f5/lib/appium_lib/ios/xcuitest/command/pasteboard.rb#L24) ios > def get_pasteboard(encoding: nil) diff --git a/lib/appium_lib/version.rb b/lib/appium_lib/version.rb index d9c6fe04..04debce0 100644 --- a/lib/appium_lib/version.rb +++ b/lib/appium_lib/version.rb @@ -1,5 +1,5 @@ module Appium # Version and Date are defined on the 'Appium' module, not 'Appium::Common' - VERSION = '9.7.1'.freeze unless defined? ::Appium::VERSION - DATE = '2017-10-01'.freeze unless defined? ::Appium::DATE + VERSION = '9.7.2'.freeze unless defined? ::Appium::VERSION + DATE = '2017-10-07'.freeze unless defined? ::Appium::DATE end diff --git a/release_notes.md b/release_notes.md index 7b59d29e..9c46bf99 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,3 +1,9 @@ +#### v9.7.1 2017-10-01 + +- [ebde85f](https://github.com/appium/ruby_lib/commit/ebde85fac616ac09e19a5f8215195e536d88344d) [Release 9 7 1 (#682)](https://github.com/appium/ruby_lib/issues/682) +- [db29b66](https://github.com/appium/ruby_lib/commit/db29b664172935f7814266c7357e099969404fe3) [fix: Fix appium version error (#681)](https://github.com/appium/ruby_lib/issues/681) + + #### v9.7.0 2017-10-01 - [bf12459](https://github.com/appium/ruby_lib/commit/bf124597977514e4d338efaaea5a29bdcbef5578) [Release 9 7 0 (#679)](https://github.com/appium/ruby_lib/issues/679)