appium_lib 4.1.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/android_tests/api.apk +0 -0
  3. data/android_tests/lib/android/specs/android/element/text.rb +2 -2
  4. data/android_tests/lib/android/specs/android/helper.rb +2 -2
  5. data/android_tests/lib/android/specs/common/device.rb +10 -28
  6. data/android_tests/lib/android/specs/common/device_touchaction.rb +29 -0
  7. data/android_tests/lib/android/specs/common/helper.rb +4 -4
  8. data/android_tests/lib/android/specs/common/patch.rb +2 -2
  9. data/android_tests/lib/android/specs/driver.rb +11 -1
  10. data/android_tests/lib/android/specs/install.rb +7 -6
  11. data/appium_lib.gemspec +2 -10
  12. data/contributing.md +23 -0
  13. data/docs/android_docs.md +274 -217
  14. data/docs/docs.md +28 -0
  15. data/docs/ios_docs.md +372 -212
  16. data/ios_tests/UICatalog.app/Info.plist +0 -0
  17. data/ios_tests/appium.txt +2 -1
  18. data/ios_tests/lib/ios/specs/common/helper.rb +12 -21
  19. data/ios_tests/lib/ios/specs/common/web_context.rb +7 -2
  20. data/ios_tests/lib/ios/specs/device/device.rb +16 -10
  21. data/ios_tests/lib/ios/specs/driver.rb +13 -2
  22. data/ios_tests/lib/ios/specs/ios/element/button.rb +5 -4
  23. data/ios_tests/lib/ios/specs/ios/element/generic.rb +2 -2
  24. data/ios_tests/lib/ios/specs/ios/element/text.rb +11 -7
  25. data/ios_tests/lib/ios/specs/ios/element/textfield.rb +9 -9
  26. data/lib/appium_lib.rb +1 -17
  27. data/lib/appium_lib/android/helper.rb +55 -5
  28. data/lib/appium_lib/common/helper.rb +26 -30
  29. data/lib/appium_lib/common/patch.rb +12 -0
  30. data/lib/appium_lib/common/version.rb +2 -2
  31. data/lib/appium_lib/device/device.rb +83 -12
  32. data/lib/appium_lib/driver.rb +26 -14
  33. data/lib/appium_lib/ios/element/button.rb +4 -4
  34. data/lib/appium_lib/ios/element/generic.rb +4 -4
  35. data/lib/appium_lib/ios/element/text.rb +4 -4
  36. data/lib/appium_lib/ios/element/textfield.rb +41 -22
  37. data/lib/appium_lib/ios/helper.rb +216 -47
  38. data/lib/appium_lib/ios/patch.rb +0 -19
  39. data/readme.md +1 -0
  40. data/release_notes.md +64 -0
  41. metadata +7 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 698cb9e22f14cb133365f282b236ff2c3f9e0c41
4
- data.tar.gz: 0f9b1f695ecac4416dc3f521dc2315aaf1ffb7d4
3
+ metadata.gz: 1beb9bca7be6c2a48daf13cffca0612dc299e760
4
+ data.tar.gz: ba17b704f4bd40c6b0081584f385f30e8d55447a
5
5
  SHA512:
6
- metadata.gz: b57a644d394f4fac902f61603053cbfc59304238c4b7a5bcfaea0d6f431868ef6d625aed5a4bedf96ff0975edeb5cb0bf130634e2b85a69fb61e7a10b61ebf5a
7
- data.tar.gz: c5000e575530d0e24dd5187edf6f592e3eb7494b61045f1c9bba880e3e24c34ad43ec7c6d5f8e5474f3cafecc0a3b77b38e7579af1405bda767222c4fb66dc03
6
+ metadata.gz: bd9771b6a76f54d4923e83711f79f22b3b652cc6a19db251c2aefe363ffbe66fb66a66cba95b87ac7661f04a3a8a9139107f6f7d9efae137a99057981939e936
7
+ data.tar.gz: 0a6ae521d1eb7376a7d78c71fd30bb48bbaaf984efc5124640d36f3eed04de984557a404c513acba6c58b9dc258a19dcff1f04d1b9da67f65682a3ea32effe43
Binary file
@@ -11,8 +11,8 @@ describe 'android/element/text' do
11
11
  end
12
12
 
13
13
  t 'texts' do
14
- wait { texts('i').length.must_equal 6 }
15
- wait { texts.length.must_equal 12 }
14
+ wait { texts('i').length.must_equal 7 }
15
+ wait { texts.length.must_equal 13 }
16
16
  end
17
17
 
18
18
  t 'first_text' do
@@ -1,7 +1,7 @@
1
1
  # rake android[android/helper]
2
2
  describe 'android/helper' do
3
3
  t 'tags' do
4
- wait { tags('android.widget.TextView').length.must_equal 12 }
4
+ wait { tags('android.widget.TextView').length.must_equal 13 }
5
5
  end
6
6
 
7
7
  # t 'get_selendroid_inspect' # only works on selendroid
@@ -66,7 +66,7 @@ describe 'android/helper' do
66
66
  end
67
67
 
68
68
  t 'ids' do
69
- wait { ids('android:id/text1').length.must_equal 11 }
69
+ wait { ids('android:id/text1').length.must_equal 12 }
70
70
  end
71
71
 
72
72
  t '_parse_current_app_line' do
@@ -15,6 +15,15 @@ describe 'common/device' do
15
15
  wait { background_app 5 }
16
16
  end
17
17
 
18
+ t 'start_activity' do
19
+ wait { current_activity.must_equal '.ApiDemos' }
20
+ start_activity app_package: 'io.appium.android.apis', app_activity: '.accessibility.AccessibilityNodeProviderActivity'
21
+ wait { current_activity.include?('Node').must_equal true }
22
+ start_activity app_package: 'com.android.settings', app_activity: '.Settings',
23
+ app_wait_package: 'com.android.settings', app_wait_activity: '.Settings'
24
+ wait { current_activity.include?('Settings').must_equal true }
25
+ end
26
+
18
27
  t 'is_installed' do
19
28
  wait { is_installed?('fake_app').must_equal false }
20
29
  end
@@ -26,7 +35,7 @@ describe 'common/device' do
26
35
 
27
36
  t 'close & launch' do
28
37
  close_app
29
- launch
38
+ launch_app
30
39
  end
31
40
 
32
41
  t 'current_activity' do
@@ -80,33 +89,6 @@ describe 'common/device' do
80
89
  wait { text('App') }
81
90
  end
82
91
 
83
- t 'action_chain' do
84
- wait do
85
- e = find_element(:name, 'Accessibility')
86
- Appium::TouchAction.new.press(:element => e, x: 0.5, y: 0.5).release(:element => e).perform
87
- end
88
- wait { find_element(:name, 'Custom View') }
89
- back
90
- wait { text_exact 'NFC' }
91
- end
92
-
93
- t 'swipe' do
94
- wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25, end_x: 0.75, end_y: 0.5, duration: 1.5).perform }
95
- wait { !exists { text_exact 'NFC' } }
96
- back
97
- wait { text_exact 'NFC' }
98
- end
99
-
100
- t 'pinch & zoom' do
101
- wait { text_exact 'NFC' }
102
- wait { text_exact('Graphics').click }
103
- wait { text('BitmapMesh').click }
104
- wait do
105
- zoom 200
106
- pinch 75
107
- end
108
- end
109
-
110
92
  t 'push and pull file' do
111
93
  file = 'A Fine Day'
112
94
  path = '/data/local/tmp/remote.txt'
@@ -0,0 +1,29 @@
1
+ # rake android[common/device_touchaction]
2
+ describe 'common/device_touchaction' do
3
+ t 'action_chain' do
4
+ wait do
5
+ e = find_element(:name, 'Accessibility')
6
+ Appium::TouchAction.new.press(:element => e, x: 0.5, y: 0.5).release(:element => e).perform
7
+ end
8
+ wait { find_element(:name, 'Custom View') }
9
+ back
10
+ wait { text_exact 'NFC' }
11
+ end
12
+
13
+ t 'swipe' do
14
+ wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25, end_x: 0.75, end_y: 0.5, duration: 1.5).perform }
15
+ wait { !exists { text_exact 'NFC' } }
16
+ back
17
+ wait { text_exact 'NFC' }
18
+ end
19
+
20
+ t 'pinch & zoom' do
21
+ wait { text_exact 'NFC' }
22
+ wait { text_exact('Graphics').click }
23
+ wait { text('BitmapMesh').click }
24
+ wait do
25
+ zoom 200
26
+ pinch 75
27
+ end
28
+ end
29
+ end
@@ -60,7 +60,7 @@ must_not_raise is a no-op.
60
60
 
61
61
  t 'back' do
62
62
  # start page
63
- wait { texts.length.must_equal 12 }
63
+ wait { texts.length.must_equal 13 }
64
64
  # nav to new page.
65
65
  # ele 0 is the title and can't be clicked.
66
66
  wait { text(2).click }
@@ -80,15 +80,15 @@ must_not_raise is a no-op.
80
80
  end
81
81
 
82
82
  t 'xpaths' do
83
- wait { xpaths('//android.widget.TextView').length.must_equal 12 }
83
+ wait { xpaths('//android.widget.TextView').length.must_equal 13 }
84
84
  end
85
85
 
86
86
  t 'ele_index' do
87
- wait { ele_index('android.widget.TextView', 2).name.must_equal 'Accessibility' }
87
+ wait { ele_index('android.widget.TextView', 3).name.must_equal 'Accessibility' }
88
88
  end
89
89
 
90
90
  t 'tags' do
91
- wait { tags('android.widget.TextView').length.must_equal 12 }
91
+ wait { tags('android.widget.TextView').length.must_equal 13 }
92
92
  end
93
93
 
94
94
  t 'first_ele' do
@@ -55,14 +55,14 @@ describe 'common/patch' do
55
55
  t 'find many elements by resource id' do
56
56
  wait do
57
57
  value = find_elements(:id, 'android:id/text1').length
58
- value.must_equal 11
58
+ value.must_equal 12
59
59
  end
60
60
  end
61
61
 
62
62
  t 'find single element by resource id' do
63
63
  wait do
64
64
  value = id('android:id/text1').text
65
- value.must_equal 'Accessibility'
65
+ value.must_equal "Access'ibility"
66
66
  end
67
67
  end
68
68
  end
@@ -169,7 +169,7 @@ describe 'driver' do
169
169
  # any elements
170
170
  t 'find_elements' do
171
171
  wait do
172
- find_elements(:class_name, 'android.widget.TextView').length.must_equal 12
172
+ find_elements(:class_name, 'android.widget.TextView').length.must_equal 13
173
173
  end
174
174
  end
175
175
 
@@ -180,6 +180,16 @@ describe 'driver' do
180
180
  end
181
181
  end
182
182
 
183
+ # settings
184
+ t 'get settings' do
185
+ get_settings.wont_be_nil
186
+ end
187
+
188
+ t 'update settings' do
189
+ update_settings cyberdelia: 'open'
190
+ get_settings['cyberdelia'].must_equal 'open'
191
+ end
192
+
183
193
  # Skip: x # x is only used in Pry
184
194
  end
185
195
  end
@@ -12,14 +12,15 @@ describe 'install' do
12
12
  is_installed?(pkg).must_equal false
13
13
  end
14
14
 
15
- t 'install/uninstall/launch' do
16
- skip # no way to launch apk after it's uninstalled/installed
17
- # blocked on: https://github.com/appium/appium/issues/2969
15
+ t 'install/uninstall' do
18
16
  installed
19
- remove 'io.appium.android.apis'
17
+ remove_app 'io.appium.android.apis'
20
18
  not_installed
21
- install caps[:app]
19
+ install_app caps[:app]
22
20
  installed
23
- launch
24
21
  end
22
+
23
+ # no way to launch apk after it's uninstalled/installed
24
+ # blocked on: https://github.com/appium/appium/issues/2969
25
+ # launch_app
25
26
  end
@@ -1,12 +1,4 @@
1
- def self.add_to_path path
2
- path = File.expand_path "../#{path}/", __FILE__
3
-
4
- $:.unshift path unless $:.include? path
5
- end
6
-
7
- add_to_path 'lib'
8
-
9
- require 'appium_lib/common/version'
1
+ require_relative 'lib/appium_lib/common/version'
10
2
 
11
3
  Gem::Specification.new do |s|
12
4
  # 1.8.x is not supported
@@ -26,7 +18,7 @@ Gem::Specification.new do |s|
26
18
  s.add_runtime_dependency 'awesome_print', '~> 1.2', '>= 1.2.0'
27
19
  s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
28
20
  s.add_runtime_dependency 'toml', '~> 0.0', '>= 0.0.4'
29
- s.add_runtime_dependency 'nokogiri', '~> 1.6.1'
21
+ s.add_runtime_dependency 'nokogiri', '~> 1.6.3.1'
30
22
 
31
23
  s.add_development_dependency 'posix-spawn', '~> 0.3', '>= 0.3.8'
32
24
  s.add_development_dependency 'hashdiff', '~> 0.2.0'
@@ -0,0 +1,23 @@
1
+ # Contributing
2
+
3
+ For features or bug fixes, please submit a pull request. Ideally there would be a test as well. The remainder of this doc details how to run the tests.
4
+
5
+ ## Tests
6
+
7
+ - Tests are run against [appium's master branch](https://github.com/appium/appium/blob/master/docs/en/contributing-to-appium/appium-from-source.md)
8
+ - The tests are run using the [flaky gem](https://github.com/appium/flaky) on OS X
9
+ - The `arc` command can be run from within the `ios_tests` or `android_tests` folder to open an interactive console
10
+
11
+ ### Run iOS tests
12
+
13
+ iOS tests are run on the iPhone 6 / iOS 8.1 simulator.
14
+
15
+ - `cd ios_tests`
16
+ - `flake 3 ios` - Run all the iOS tests up to 3 times
17
+
18
+ ### Run Android tests
19
+
20
+ Android tests require running on physical hardware with Android 5.0 (API 21). The emulator is unreliable.
21
+
22
+ - `cd android_tests`
23
+ - `flake 3 android` - Run all the Android tests up to 3 times
@@ -1,4 +1,4 @@
1
- ##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L72)
1
+ ##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L72)
2
2
 
3
3
  > def self.load_appium_txt opts={}
4
4
 
@@ -27,7 +27,7 @@ __Returns:__
27
27
 
28
28
  --
29
29
 
30
- ##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L142)
30
+ ##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L142)
31
31
 
32
32
  > def self.symbolize_keys hash
33
33
 
@@ -38,7 +38,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
38
38
 
39
39
  --
40
40
 
41
- ##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L155)
41
+ ##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L155)
42
42
 
43
43
  > def self.promote_singleton_appium_methods modules
44
44
 
@@ -48,7 +48,7 @@ otherwise, the array of modules will be used as the promotion target.
48
48
 
49
49
  --
50
50
 
51
- ##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L195)
51
+ ##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L195)
52
52
 
53
53
  > def self.promote_appium_methods class_array
54
54
 
@@ -66,7 +66,7 @@ __Parameters:__
66
66
 
67
67
  --
68
68
 
69
- ##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
69
+ ##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L231)
70
70
 
71
71
  > def global_webdriver_http_sleep
72
72
 
@@ -74,7 +74,7 @@ The amount to sleep in seconds before every webdriver http call.
74
74
 
75
75
  --
76
76
 
77
- ##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
77
+ ##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L231)
78
78
 
79
79
  > def global_webdriver_http_sleep=(value)
80
80
 
@@ -82,55 +82,55 @@ The amount to sleep in seconds before every webdriver http call.
82
82
 
83
83
  --
84
84
 
85
- ##### [caps](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
85
+ ##### [caps](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L233)
86
86
 
87
87
  > def caps
88
88
 
89
- The amount to sleep in seconds before every webdriver http call.
89
+ Selenium webdriver capabilities
90
90
 
91
91
  --
92
92
 
93
- ##### [caps=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
93
+ ##### [caps=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L233)
94
94
 
95
95
  > def caps=(value)
96
96
 
97
- The amount to sleep in seconds before every webdriver http call.
97
+ Selenium webdriver capabilities
98
98
 
99
99
  --
100
100
 
101
- ##### [custom_url](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
101
+ ##### [custom_url](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L235)
102
102
 
103
103
  > def custom_url
104
104
 
105
- The amount to sleep in seconds before every webdriver http call.
105
+ Custom URL for the selenium server
106
106
 
107
107
  --
108
108
 
109
- ##### [custom_url=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
109
+ ##### [custom_url=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L235)
110
110
 
111
111
  > def custom_url=(value)
112
112
 
113
- The amount to sleep in seconds before every webdriver http call.
113
+ Custom URL for the selenium server
114
114
 
115
115
  --
116
116
 
117
- ##### [export_session](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
117
+ ##### [export_session](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L237)
118
118
 
119
119
  > def export_session
120
120
 
121
- The amount to sleep in seconds before every webdriver http call.
121
+ Export session id to textfile in /tmp for 3rd party tools
122
122
 
123
123
  --
124
124
 
125
- ##### [export_session=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
125
+ ##### [export_session=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L237)
126
126
 
127
127
  > def export_session=(value)
128
128
 
129
- The amount to sleep in seconds before every webdriver http call.
129
+ Export session id to textfile in /tmp for 3rd party tools
130
130
 
131
131
  --
132
132
 
133
- ##### [default_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
133
+ ##### [default_wait](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L239)
134
134
 
135
135
  > def default_wait
136
136
 
@@ -143,111 +143,111 @@ __Returns:__
143
143
 
144
144
  --
145
145
 
146
- ##### [default_wait=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
146
+ ##### [default_wait=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L239)
147
147
 
148
148
  > def default_wait=(value)
149
149
 
150
- The amount to sleep in seconds before every webdriver http call.
150
+ Default wait time for elements to appear
151
151
 
152
152
  --
153
153
 
154
- ##### [last_waits](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
154
+ ##### [last_waits](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L241)
155
155
 
156
156
  > def last_waits
157
157
 
158
- The amount to sleep in seconds before every webdriver http call.
158
+ Array of previous wait time values
159
159
 
160
160
  --
161
161
 
162
- ##### [last_waits=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
162
+ ##### [last_waits=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L241)
163
163
 
164
164
  > def last_waits=(value)
165
165
 
166
- The amount to sleep in seconds before every webdriver http call.
166
+ Array of previous wait time values
167
167
 
168
168
  --
169
169
 
170
- ##### [sauce_username](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
170
+ ##### [sauce_username](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L243)
171
171
 
172
172
  > def sauce_username
173
173
 
174
- The amount to sleep in seconds before every webdriver http call.
174
+ Username for use on Sauce Labs
175
175
 
176
176
  --
177
177
 
178
- ##### [sauce_username=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
178
+ ##### [sauce_username=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L243)
179
179
 
180
180
  > def sauce_username=(value)
181
181
 
182
- The amount to sleep in seconds before every webdriver http call.
182
+ Username for use on Sauce Labs
183
183
 
184
184
  --
185
185
 
186
- ##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
186
+ ##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L245)
187
187
 
188
188
  > def sauce_access_key
189
189
 
190
- The amount to sleep in seconds before every webdriver http call.
190
+ Access Key for use on Sauce Labs
191
191
 
192
192
  --
193
193
 
194
- ##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
194
+ ##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L245)
195
195
 
196
196
  > def sauce_access_key=(value)
197
197
 
198
- The amount to sleep in seconds before every webdriver http call.
198
+ Access Key for use on Sauce Labs
199
199
 
200
200
  --
201
201
 
202
- ##### [appium_port](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
202
+ ##### [appium_port](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L247)
203
203
 
204
204
  > def appium_port
205
205
 
206
- The amount to sleep in seconds before every webdriver http call.
206
+ Appium's server port
207
207
 
208
208
  --
209
209
 
210
- ##### [appium_port=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
210
+ ##### [appium_port=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L247)
211
211
 
212
212
  > def appium_port=(value)
213
213
 
214
- The amount to sleep in seconds before every webdriver http call.
214
+ Appium's server port
215
215
 
216
216
  --
217
217
 
218
- ##### [appium_device](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
218
+ ##### [appium_device](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L249)
219
219
 
220
220
  > def appium_device
221
221
 
222
- The amount to sleep in seconds before every webdriver http call.
222
+ Device type to request from the appium server
223
223
 
224
224
  --
225
225
 
226
- ##### [appium_device=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
226
+ ##### [appium_device=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L249)
227
227
 
228
228
  > def appium_device=(value)
229
229
 
230
- The amount to sleep in seconds before every webdriver http call.
230
+ Device type to request from the appium server
231
231
 
232
232
  --
233
233
 
234
- ##### [appium_debug](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
234
+ ##### [appium_debug](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L251)
235
235
 
236
236
  > def appium_debug
237
237
 
238
- The amount to sleep in seconds before every webdriver http call.
238
+ Boolean debug mode for the Appium Ruby bindings
239
239
 
240
240
  --
241
241
 
242
- ##### [appium_debug=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L228)
242
+ ##### [appium_debug=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L251)
243
243
 
244
244
  > def appium_debug=(value)
245
245
 
246
- The amount to sleep in seconds before every webdriver http call.
246
+ Boolean debug mode for the Appium Ruby bindings
247
247
 
248
248
  --
249
249
 
250
- ##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L259)
250
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L272)
251
251
 
252
252
  > def initialize opts={}
253
253
 
@@ -278,7 +278,7 @@ __Returns:__
278
278
 
279
279
  --
280
280
 
281
- ##### [driver_attributes](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L334)
281
+ ##### [driver_attributes](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L347)
282
282
 
283
283
  > def driver_attributes
284
284
 
@@ -286,7 +286,7 @@ Returns a hash of the driver attributes
286
286
 
287
287
  --
288
288
 
289
- ##### [device_is_android?](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L354)
289
+ ##### [device_is_android?](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L367)
290
290
 
291
291
  > def device_is_android?
292
292
 
@@ -298,7 +298,7 @@ __Returns:__
298
298
 
299
299
  --
300
300
 
301
- ##### [appium_server_version](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L370)
301
+ ##### [appium_server_version](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L383)
302
302
 
303
303
  > def appium_server_version
304
304
 
@@ -319,7 +319,7 @@ __Returns:__
319
319
 
320
320
  --
321
321
 
322
- ##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L382)
322
+ ##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L395)
323
323
 
324
324
  > def self.absolute_app_path opts
325
325
 
@@ -336,7 +336,7 @@ __Returns:__
336
336
 
337
337
  --
338
338
 
339
- ##### [server_url](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L415)
339
+ ##### [server_url](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L428)
340
340
 
341
341
  > def server_url
342
342
 
@@ -348,7 +348,7 @@ __Returns:__
348
348
 
349
349
  --
350
350
 
351
- ##### [restart](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L426)
351
+ ##### [restart](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L439)
352
352
 
353
353
  > def restart
354
354
 
@@ -360,7 +360,7 @@ __Returns:__
360
360
 
361
361
  --
362
362
 
363
- ##### [driver](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L433)
363
+ ##### [driver](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L446)
364
364
 
365
365
  > def driver
366
366
 
@@ -372,7 +372,7 @@ __Returns:__
372
372
 
373
373
  --
374
374
 
375
- ##### [screenshot](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L443)
375
+ ##### [screenshot](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L456)
376
376
 
377
377
  > def screenshot png_save_path
378
378
 
@@ -390,7 +390,7 @@ __Returns:__
390
390
 
391
391
  --
392
392
 
393
- ##### [driver_quit](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L450)
393
+ ##### [driver_quit](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L463)
394
394
 
395
395
  > def driver_quit
396
396
 
@@ -402,7 +402,7 @@ __Returns:__
402
402
 
403
403
  --
404
404
 
405
- ##### [start_driver](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L458)
405
+ ##### [start_driver](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L471)
406
406
 
407
407
  > def start_driver
408
408
 
@@ -414,7 +414,7 @@ __Returns:__
414
414
 
415
415
  --
416
416
 
417
- ##### [no_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L485)
417
+ ##### [no_wait](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L497)
418
418
 
419
419
  > def no_wait
420
420
 
@@ -422,7 +422,7 @@ Set implicit wait and default_wait to zero.
422
422
 
423
423
  --
424
424
 
425
- ##### [set_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L504)
425
+ ##### [set_wait](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L516)
426
426
 
427
427
  > def set_wait timeout=nil
428
428
 
@@ -447,7 +447,7 @@ __Returns:__
447
447
 
448
448
  --
449
449
 
450
- ##### [exists](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L538)
450
+ ##### [exists](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L550)
451
451
 
452
452
  > def exists pre_check=0, post_check=@default_wait, &search_block
453
453
 
@@ -473,7 +473,7 @@ __Returns:__
473
473
 
474
474
  --
475
475
 
476
- ##### [execute_script](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L562)
476
+ ##### [execute_script](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L574)
477
477
 
478
478
  > def execute_script script, *args
479
479
 
@@ -491,7 +491,7 @@ __Returns:__
491
491
 
492
492
  --
493
493
 
494
- ##### [find_elements](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L570)
494
+ ##### [find_elements](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L582)
495
495
 
496
496
  > def find_elements *args
497
497
 
@@ -507,7 +507,7 @@ __Returns:__
507
507
 
508
508
  --
509
509
 
510
- ##### [find_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L578)
510
+ ##### [find_element](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L590)
511
511
 
512
512
  > def find_element *args
513
513
 
@@ -523,7 +523,7 @@ __Returns:__
523
523
 
524
524
  --
525
525
 
526
- ##### [x](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/driver.rb#L585)
526
+ ##### [x](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/driver.rb#L597)
527
527
 
528
528
  > def x
529
529
 
@@ -536,7 +536,7 @@ __Returns:__
536
536
 
537
537
  --
538
538
 
539
- ##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L7)
539
+ ##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L7)
540
540
 
541
541
  > NoArgMethods = {
542
542
 
@@ -544,7 +544,7 @@ __Returns:__
544
544
 
545
545
  --
546
546
 
547
- ##### [app_strings](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L22)
547
+ ##### [app_strings](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L23)
548
548
 
549
549
  > def app_strings
550
550
 
@@ -555,7 +555,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
555
555
 
556
556
  --
557
557
 
558
- ##### [background_app](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L28)
558
+ ##### [background_app](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L29)
559
559
 
560
560
  > def background_app
561
561
 
@@ -564,7 +564,7 @@ This is a blocking application
564
564
 
565
565
  --
566
566
 
567
- ##### [current_activity](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L33)
567
+ ##### [current_activity](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L34)
568
568
 
569
569
  > def current_activity
570
570
 
@@ -572,15 +572,15 @@ This is a blocking application
572
572
 
573
573
  --
574
574
 
575
- ##### [launch](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L35)
575
+ ##### [launch_app](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L36)
576
576
 
577
- > def launch
577
+ > def launch_app
578
578
 
579
579
  Start the simulator and applicaton configured with desired capabilities
580
580
 
581
581
  --
582
582
 
583
- ##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L38)
583
+ ##### [reset](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L39)
584
584
 
585
585
  > def reset
586
586
 
@@ -588,7 +588,7 @@ Reset the device, relaunching the application.
588
588
 
589
589
  --
590
590
 
591
- ##### [shake](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L41)
591
+ ##### [shake](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L42)
592
592
 
593
593
  > def shake
594
594
 
@@ -596,7 +596,7 @@ Cause the device to shake
596
596
 
597
597
  --
598
598
 
599
- ##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L44)
599
+ ##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L45)
600
600
 
601
601
  > def toggle_flight_mode
602
602
 
@@ -604,7 +604,7 @@ toggle flight mode on or off
604
604
 
605
605
  --
606
606
 
607
- ##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L47)
607
+ ##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L48)
608
608
 
609
609
  > def hide_keyboard
610
610
 
@@ -617,7 +617,7 @@ Defaults to 'Done'.
617
617
 
618
618
  --
619
619
 
620
- ##### [press_keycode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L56)
620
+ ##### [press_keycode](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L57)
621
621
 
622
622
  > def press_keycode
623
623
 
@@ -632,7 +632,7 @@ __Parameters:__
632
632
 
633
633
  --
634
634
 
635
- ##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L62)
635
+ ##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L63)
636
636
 
637
637
  > def long_press_keycode
638
638
 
@@ -647,7 +647,7 @@ __Parameters:__
647
647
 
648
648
  --
649
649
 
650
- ##### [push_file](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L68)
650
+ ##### [push_file](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L69)
651
651
 
652
652
  > def push_file
653
653
 
@@ -661,7 +661,7 @@ __Parameters:__
661
661
 
662
662
  --
663
663
 
664
- ##### [pull_file](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L73)
664
+ ##### [pull_file](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L74)
665
665
 
666
666
  > def pull_file
667
667
 
@@ -678,7 +678,7 @@ __Parameters:__
678
678
 
679
679
  --
680
680
 
681
- ##### [pull_folder](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L83)
681
+ ##### [pull_folder](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L84)
682
682
 
683
683
  > def pull_folder
684
684
 
@@ -693,7 +693,29 @@ __Parameters:__
693
693
 
694
694
  --
695
695
 
696
- ##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L274)
696
+ ##### [end_coverage](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L92)
697
+
698
+ > def end_coverage
699
+
700
+ Android only; Ends the test coverage and writes the results to the given path on device.
701
+
702
+ __Parameters:__
703
+
704
+      [String] path - Path on the device to write too.
705
+
706
+      [String] intent - Intent to broadcast when ending coverage.
707
+
708
+ --
709
+
710
+ ##### [get_settings](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L97)
711
+
712
+ > def get_settings
713
+
714
+ Get appium Settings for current test session
715
+
716
+ --
717
+
718
+ ##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L345)
697
719
 
698
720
  > def extend_search_contexts
699
721
 
@@ -701,7 +723,7 @@ __Parameters:__
701
723
 
702
724
  --
703
725
 
704
- ##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L274)
726
+ ##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L345)
705
727
 
706
728
  > def accessiblity_id_find
707
729
 
@@ -713,7 +735,7 @@ find_element/s with their accessibility_id
713
735
 
714
736
  --
715
737
 
716
- ##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L280)
738
+ ##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L351)
717
739
 
718
740
  > def add_touch_actions
719
741
 
@@ -721,7 +743,7 @@ find_element/s with their accessibility_id
721
743
 
722
744
  --
723
745
 
724
- ##### [set_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L304)
746
+ ##### [set_context](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L375)
725
747
 
726
748
  > def set_context
727
749
 
@@ -736,7 +758,7 @@ __Parameters:__
736
758
 
737
759
  --
738
760
 
739
- ##### [current_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L312)
761
+ ##### [current_context](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L383)
740
762
 
741
763
  > def current_context
742
764
 
@@ -748,7 +770,7 @@ __Returns:__
748
770
 
749
771
  --
750
772
 
751
- ##### [available_contexts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L315)
773
+ ##### [available_contexts](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L386)
752
774
 
753
775
  > def available_contexts
754
776
 
@@ -760,7 +782,7 @@ __Returns:__
760
782
 
761
783
  --
762
784
 
763
- ##### [within_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L325)
785
+ ##### [within_context](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L396)
764
786
 
765
787
  > def within_context(context)
766
788
 
@@ -776,7 +798,7 @@ __Parameters:__
776
798
 
777
799
  --
778
800
 
779
- ##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/device.rb#L333)
801
+ ##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/device.rb#L404)
780
802
 
781
803
  > def switch_to_default_context
782
804
 
@@ -784,7 +806,7 @@ Change to the default context. This is equivalent to `set_context nil`.
784
806
 
785
807
  --
786
808
 
787
- ##### [pinch](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L30)
809
+ ##### [pinch](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/multi_touch.rb#L30)
788
810
 
789
811
  > def pinch(percentage=25, auto_perform=true)
790
812
 
@@ -803,7 +825,7 @@ __Parameters:__
803
825
 
804
826
  --
805
827
 
806
- ##### [zoom](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L58)
828
+ ##### [zoom](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/multi_touch.rb#L58)
807
829
 
808
830
  > def zoom(percentage=200, auto_perform=true)
809
831
 
@@ -822,7 +844,7 @@ __Parameters:__
822
844
 
823
845
  --
824
846
 
825
- ##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L79)
847
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/multi_touch.rb#L79)
826
848
 
827
849
  > def initialize
828
850
 
@@ -834,7 +856,7 @@ __Returns:__
834
856
 
835
857
  --
836
858
 
837
- ##### [add](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L85)
859
+ ##### [add](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/multi_touch.rb#L85)
838
860
 
839
861
  > def add(chain)
840
862
 
@@ -846,7 +868,7 @@ __Parameters:__
846
868
 
847
869
  --
848
870
 
849
- ##### [perform](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/multi_touch.rb#L90)
871
+ ##### [perform](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/multi_touch.rb#L90)
850
872
 
851
873
  > def perform
852
874
 
@@ -854,7 +876,7 @@ Ask Appium to perform the actions
854
876
 
855
877
  --
856
878
 
857
- ##### [ACTIONS](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L12)
879
+ ##### [ACTIONS](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L12)
858
880
 
859
881
  > ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
860
882
 
@@ -862,7 +884,7 @@ Ask Appium to perform the actions
862
884
 
863
885
  --
864
886
 
865
- ##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L13)
887
+ ##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L13)
866
888
 
867
889
  > COMPLEX_ACTIONS = [:swipe]
868
890
 
@@ -870,7 +892,7 @@ Ask Appium to perform the actions
870
892
 
871
893
  --
872
894
 
873
- ##### [actions](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L27)
895
+ ##### [actions](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L27)
874
896
 
875
897
  > def actions
876
898
 
@@ -878,7 +900,7 @@ Returns the value of attribute actions
878
900
 
879
901
  --
880
902
 
881
- ##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L29)
903
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L29)
882
904
 
883
905
  > def initialize
884
906
 
@@ -890,7 +912,7 @@ __Returns:__
890
912
 
891
913
  --
892
914
 
893
- ##### [move_to](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L37)
915
+ ##### [move_to](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L37)
894
916
 
895
917
  > def move_to(opts)
896
918
 
@@ -902,7 +924,7 @@ __Parameters:__
902
924
 
903
925
  --
904
926
 
905
- ##### [long_press](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L47)
927
+ ##### [long_press](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L47)
906
928
 
907
929
  > def long_press(opts)
908
930
 
@@ -920,7 +942,7 @@ __Parameters:__
920
942
 
921
943
  --
922
944
 
923
- ##### [press](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L59)
945
+ ##### [press](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L59)
924
946
 
925
947
  > def press(opts)
926
948
 
@@ -933,7 +955,7 @@ __Parameters:__
933
955
 
934
956
  --
935
957
 
936
- ##### [release](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L70)
958
+ ##### [release](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L70)
937
959
 
938
960
  > def release(opts=nil)
939
961
 
@@ -945,7 +967,7 @@ __Parameters:__
945
967
 
946
968
  --
947
969
 
948
- ##### [tap](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L81)
970
+ ##### [tap](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L81)
949
971
 
950
972
  > def tap(opts)
951
973
 
@@ -957,7 +979,7 @@ __Parameters:__
957
979
 
958
980
  --
959
981
 
960
- ##### [wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L90)
982
+ ##### [wait](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L90)
961
983
 
962
984
  > def wait(milliseconds)
963
985
 
@@ -969,7 +991,7 @@ __Parameters:__
969
991
 
970
992
  --
971
993
 
972
- ##### [swipe](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L104)
994
+ ##### [swipe](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L104)
973
995
 
974
996
  > def swipe(opts)
975
997
 
@@ -983,7 +1005,7 @@ __Parameters:__
983
1005
 
984
1006
  --
985
1007
 
986
- ##### [perform](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L119)
1008
+ ##### [perform](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L119)
987
1009
 
988
1010
  > def perform
989
1011
 
@@ -991,7 +1013,7 @@ Ask the driver to perform all actions in this action chain.
991
1013
 
992
1014
  --
993
1015
 
994
- ##### [cancel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L125)
1016
+ ##### [cancel](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L125)
995
1017
 
996
1018
  > def cancel
997
1019
 
@@ -999,7 +1021,7 @@ Does nothing, currently.
999
1021
 
1000
1022
  --
1001
1023
 
1002
- ##### [chain_method](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L133)
1024
+ ##### [chain_method](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L133)
1003
1025
 
1004
1026
  > def chain_method(method, args=nil)
1005
1027
 
@@ -1007,7 +1029,7 @@ Does nothing, currently.
1007
1029
 
1008
1030
  --
1009
1031
 
1010
- ##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/device/touch_actions.rb#L142)
1032
+ ##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/device/touch_actions.rb#L142)
1011
1033
 
1012
1034
  > def args_with_ele_ref(args)
1013
1035
 
@@ -1015,7 +1037,7 @@ Does nothing, currently.
1015
1037
 
1016
1038
  --
1017
1039
 
1018
- ##### [_generic_wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L10)
1040
+ ##### [_generic_wait](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/wait.rb#L10)
1019
1041
 
1020
1042
  > def _generic_wait opts={}, &block
1021
1043
 
@@ -1024,7 +1046,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
1024
1046
 
1025
1047
  --
1026
1048
 
1027
- ##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L55)
1049
+ ##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/wait.rb#L55)
1028
1050
 
1029
1051
  > def _process_wait_opts opts
1030
1052
 
@@ -1032,7 +1054,7 @@ process opts before calling _generic_wait
1032
1054
 
1033
1055
  --
1034
1056
 
1035
- ##### [wait_true](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L76)
1057
+ ##### [wait_true](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/wait.rb#L76)
1036
1058
 
1037
1059
  > def wait_true opts={}, &block
1038
1060
 
@@ -1052,7 +1074,7 @@ __Parameters:__
1052
1074
 
1053
1075
  --
1054
1076
 
1055
- ##### [wait](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/wait.rb#L94)
1077
+ ##### [wait](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/wait.rb#L94)
1056
1078
 
1057
1079
  > def wait opts={}, &block
1058
1080
 
@@ -1070,7 +1092,7 @@ __Parameters:__
1070
1092
 
1071
1093
  --
1072
1094
 
1073
- ##### [ignore](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L22)
1095
+ ##### [ignore](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L24)
1074
1096
 
1075
1097
  > def ignore &block
1076
1098
 
@@ -1078,7 +1100,7 @@ Return block.call and ignore any exceptions.
1078
1100
 
1079
1101
  --
1080
1102
 
1081
- ##### [back](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L31)
1103
+ ##### [back](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L33)
1082
1104
 
1083
1105
  > def back
1084
1106
 
@@ -1090,7 +1112,7 @@ __Returns:__
1090
1112
 
1091
1113
  --
1092
1114
 
1093
- ##### [session_id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L36)
1115
+ ##### [session_id](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L38)
1094
1116
 
1095
1117
  > def session_id
1096
1118
 
@@ -1098,7 +1120,7 @@ For Sauce Labs reporting. Returns the current session id.
1098
1120
 
1099
1121
  --
1100
1122
 
1101
- ##### [xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L44)
1123
+ ##### [xpath](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L46)
1102
1124
 
1103
1125
  > def xpath xpath_str
1104
1126
 
@@ -1114,7 +1136,7 @@ __Returns:__
1114
1136
 
1115
1137
  --
1116
1138
 
1117
- ##### [xpaths](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L52)
1139
+ ##### [xpaths](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L54)
1118
1140
 
1119
1141
  > def xpaths xpath_str
1120
1142
 
@@ -1130,32 +1152,15 @@ __Returns:__
1130
1152
 
1131
1153
  --
1132
1154
 
1133
- ##### [source](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L58)
1134
-
1135
- > def source
1136
-
1137
- Prints xml of the current page
1138
-
1139
- __Returns:__
1140
-
1141
-      [void]
1142
-
1143
- --
1144
-
1145
- ##### [get_source](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L76)
1155
+ ##### [_print_source](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L58)
1146
1156
 
1147
- > def get_source
1148
-
1149
- Returns XML string for the current page
1150
- Same as driver.page_source
1157
+ > def _print_source source
1151
1158
 
1152
- __Returns:__
1153
1159
 
1154
-      [String]
1155
1160
 
1156
1161
  --
1157
1162
 
1158
- ##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L83)
1163
+ ##### [result](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L71)
1159
1164
 
1160
1165
  > def result
1161
1166
 
@@ -1163,7 +1168,7 @@ Returns the value of attribute result
1163
1168
 
1164
1169
  --
1165
1170
 
1166
- ##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L85)
1171
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L73)
1167
1172
 
1168
1173
  > def initialize
1169
1174
 
@@ -1175,7 +1180,7 @@ __Returns:__
1175
1180
 
1176
1181
  --
1177
1182
 
1178
- ##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L89)
1183
+ ##### [reset](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L77)
1179
1184
 
1180
1185
  > def reset
1181
1186
 
@@ -1183,7 +1188,7 @@ __Returns:__
1183
1188
 
1184
1189
  --
1185
1190
 
1186
- ##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L94)
1191
+ ##### [start_element](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L82)
1187
1192
 
1188
1193
  > def start_element name, attrs = []
1189
1194
 
@@ -1191,7 +1196,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
1191
1196
 
1192
1197
  --
1193
1198
 
1194
- ##### [formatted_result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L100)
1199
+ ##### [formatted_result](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L88)
1195
1200
 
1196
1201
  > def formatted_result
1197
1202
 
@@ -1199,7 +1204,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
1199
1204
 
1200
1205
  --
1201
1206
 
1202
- ##### [get_page_class](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L111)
1207
+ ##### [get_page_class](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L99)
1203
1208
 
1204
1209
  > def get_page_class
1205
1210
 
@@ -1207,7 +1212,7 @@ Returns a string of class counts of visible elements.
1207
1212
 
1208
1213
  --
1209
1214
 
1210
- ##### [page_class](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L122)
1215
+ ##### [page_class](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L110)
1211
1216
 
1212
1217
  > def page_class
1213
1218
 
@@ -1216,7 +1221,7 @@ Useful for appium_console.
1216
1221
 
1217
1222
  --
1218
1223
 
1219
- ##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L132)
1224
+ ##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L120)
1220
1225
 
1221
1226
  > def px_to_window_rel opts={}
1222
1227
 
@@ -1228,7 +1233,7 @@ px_to_window_rel x: 50, y: 150
1228
1233
 
1229
1234
  --
1230
1235
 
1231
- ##### [xml_keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L149)
1236
+ ##### [xml_keys](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L139)
1232
1237
 
1233
1238
  > def xml_keys target
1234
1239
 
@@ -1244,7 +1249,7 @@ __Returns:__
1244
1249
 
1245
1250
  --
1246
1251
 
1247
- ##### [xml_values](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L157)
1252
+ ##### [xml_values](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L147)
1248
1253
 
1249
1254
  > def xml_values target
1250
1255
 
@@ -1260,7 +1265,7 @@ __Returns:__
1260
1265
 
1261
1266
  --
1262
1267
 
1263
- ##### [resolve_id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L165)
1268
+ ##### [resolve_id](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L155)
1264
1269
 
1265
1270
  > def resolve_id id
1266
1271
 
@@ -1276,7 +1281,7 @@ __Returns:__
1276
1281
 
1277
1282
  --
1278
1283
 
1279
- ##### [filter](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L171)
1284
+ ##### [filter](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L161)
1280
1285
 
1281
1286
  > def filter
1282
1287
 
@@ -1284,7 +1289,7 @@ __Returns:__
1284
1289
 
1285
1290
  --
1286
1291
 
1287
- ##### [filter=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L176)
1292
+ ##### [filter=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L166)
1288
1293
 
1289
1294
  > def filter= value
1290
1295
 
@@ -1292,7 +1297,7 @@ convert to string to support symbols
1292
1297
 
1293
1298
  --
1294
1299
 
1295
- ##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L182)
1300
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L172)
1296
1301
 
1297
1302
  > def initialize
1298
1303
 
@@ -1304,7 +1309,7 @@ __Returns:__
1304
1309
 
1305
1310
  --
1306
1311
 
1307
- ##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L187)
1312
+ ##### [reset](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L177)
1308
1313
 
1309
1314
  > def reset
1310
1315
 
@@ -1312,7 +1317,7 @@ __Returns:__
1312
1317
 
1313
1318
  --
1314
1319
 
1315
- ##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L193)
1320
+ ##### [result](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L183)
1316
1321
 
1317
1322
  > def result
1318
1323
 
@@ -1320,7 +1325,7 @@ __Returns:__
1320
1325
 
1321
1326
  --
1322
1327
 
1323
- ##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L207)
1328
+ ##### [start_element](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L199)
1324
1329
 
1325
1330
  > def start_element name, attrs = []
1326
1331
 
@@ -1328,7 +1333,7 @@ __Returns:__
1328
1333
 
1329
1334
  --
1330
1335
 
1331
- ##### [end_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L217)
1336
+ ##### [end_element](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L209)
1332
1337
 
1333
1338
  > def end_element name
1334
1339
 
@@ -1336,7 +1341,7 @@ __Returns:__
1336
1341
 
1337
1342
  --
1338
1343
 
1339
- ##### [characters](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/helper.rb#L223)
1344
+ ##### [characters](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L215)
1340
1345
 
1341
1346
  > def characters(chars)
1342
1347
 
@@ -1344,7 +1349,15 @@ __Returns:__
1344
1349
 
1345
1350
  --
1346
1351
 
1347
- ##### [window_size](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/element/window.rb#L5)
1352
+ ##### [_no_such_element](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/helper.rb#L223)
1353
+
1354
+ > def _no_such_element
1355
+
1356
+
1357
+
1358
+ --
1359
+
1360
+ ##### [window_size](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/element/window.rb#L5)
1348
1361
 
1349
1362
  > def window_size
1350
1363
 
@@ -1352,7 +1365,7 @@ Get the window's size
1352
1365
 
1353
1366
  --
1354
1367
 
1355
- ##### [result](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L6) android
1368
+ ##### [result](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L6) android
1356
1369
 
1357
1370
  > def result
1358
1371
 
@@ -1360,7 +1373,7 @@ Returns the value of attribute result
1360
1373
 
1361
1374
  --
1362
1375
 
1363
- ##### [keys](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L6) android
1376
+ ##### [keys](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L6) android
1364
1377
 
1365
1378
  > def keys
1366
1379
 
@@ -1368,7 +1381,7 @@ Returns the value of attribute keys
1368
1381
 
1369
1382
  --
1370
1383
 
1371
- ##### [instance](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L6) android
1384
+ ##### [instance](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L6) android
1372
1385
 
1373
1386
  > def instance
1374
1387
 
@@ -1376,7 +1389,7 @@ Returns the value of attribute instance
1376
1389
 
1377
1390
  --
1378
1391
 
1379
- ##### [filter](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L8) android
1392
+ ##### [filter](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L8) android
1380
1393
 
1381
1394
  > def filter
1382
1395
 
@@ -1384,7 +1397,7 @@ Returns the value of attribute instance
1384
1397
 
1385
1398
  --
1386
1399
 
1387
- ##### [filter=](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L13) android
1400
+ ##### [filter=](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L13) android
1388
1401
 
1389
1402
  > def filter= value
1390
1403
 
@@ -1392,7 +1405,7 @@ convert to string to support symbols
1392
1405
 
1393
1406
  --
1394
1407
 
1395
- ##### [initialize](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L19) android
1408
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L19) android
1396
1409
 
1397
1410
  > def initialize
1398
1411
 
@@ -1404,7 +1417,7 @@ __Returns:__
1404
1417
 
1405
1418
  --
1406
1419
 
1407
- ##### [reset](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L25) android
1420
+ ##### [reset](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L25) android
1408
1421
 
1409
1422
  > def reset
1410
1423
 
@@ -1412,7 +1425,7 @@ __Returns:__
1412
1425
 
1413
1426
  --
1414
1427
 
1415
- ##### [start_element](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L32) android
1428
+ ##### [start_element](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L32) android
1416
1429
 
1417
1430
  > def start_element name, attrs = []
1418
1431
 
@@ -1420,7 +1433,29 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
1420
1433
 
1421
1434
  --
1422
1435
 
1423
- ##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L92) android
1436
+ ##### [_fix_android_native_source](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L89) android
1437
+
1438
+ > def _fix_android_native_source source
1439
+
1440
+ Fix uiautomator's xml dump.
1441
+ https://github.com/appium/appium/issues/2822
1442
+ https://code.google.com/p/android/issues/detail?id=74143
1443
+
1444
+ --
1445
+
1446
+ ##### [source](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L117) android
1447
+
1448
+ > def source
1449
+
1450
+ Prints xml of the current page
1451
+
1452
+ __Returns:__
1453
+
1454
+      [void]
1455
+
1456
+ --
1457
+
1458
+ ##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L127) android
1424
1459
 
1425
1460
  > def get_android_inspect class_name=false
1426
1461
 
@@ -1439,7 +1474,7 @@ __Returns:__
1439
1474
 
1440
1475
  --
1441
1476
 
1442
- ##### [page](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L113) android
1477
+ ##### [page](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L153) android
1443
1478
 
1444
1479
  > def page opts={}
1445
1480
 
@@ -1458,7 +1493,7 @@ __Returns:__
1458
1493
 
1459
1494
  --
1460
1495
 
1461
- ##### [current_app](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L124) android
1496
+ ##### [current_app](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L164) android
1462
1497
 
1463
1498
  > def current_app
1464
1499
 
@@ -1467,7 +1502,7 @@ example line:
1467
1502
 
1468
1503
  --
1469
1504
 
1470
- ##### [id](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L148) android
1505
+ ##### [id](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L188) android
1471
1506
 
1472
1507
  > def id id
1473
1508
 
@@ -1483,7 +1518,7 @@ __Returns:__
1483
1518
 
1484
1519
  --
1485
1520
 
1486
- ##### [ids](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L156) android
1521
+ ##### [ids](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L196) android
1487
1522
 
1488
1523
  > def ids id
1489
1524
 
@@ -1499,7 +1534,7 @@ __Returns:__
1499
1534
 
1500
1535
  --
1501
1536
 
1502
- ##### [ele_index](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L165) android
1537
+ ##### [ele_index](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L205) android
1503
1538
 
1504
1539
  > def ele_index class_name, index
1505
1540
 
@@ -1517,7 +1552,7 @@ __Returns:__
1517
1552
 
1518
1553
  --
1519
1554
 
1520
- ##### [first_ele](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L183) android
1555
+ ##### [first_ele](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L223) android
1521
1556
 
1522
1557
  > def first_ele class_name
1523
1558
 
@@ -1533,7 +1568,7 @@ __Returns:__
1533
1568
 
1534
1569
  --
1535
1570
 
1536
- ##### [last_ele](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L190) android
1571
+ ##### [last_ele](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L230) android
1537
1572
 
1538
1573
  > def last_ele class_name
1539
1574
 
@@ -1549,7 +1584,7 @@ __Returns:__
1549
1584
 
1550
1585
  --
1551
1586
 
1552
- ##### [tag](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L198) android
1587
+ ##### [tag](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L238) android
1553
1588
 
1554
1589
  > def tag class_name
1555
1590
 
@@ -1565,7 +1600,7 @@ __Returns:__
1565
1600
 
1566
1601
  --
1567
1602
 
1568
- ##### [tags](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L206) android
1603
+ ##### [tags](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L246) android
1569
1604
 
1570
1605
  > def tags class_name
1571
1606
 
@@ -1581,7 +1616,7 @@ __Returns:__
1581
1616
 
1582
1617
  --
1583
1618
 
1584
- ##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L238) android
1619
+ ##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L278) android
1585
1620
 
1586
1621
  > def complex_find_contains element, value
1587
1622
 
@@ -1599,7 +1634,7 @@ __Returns:__
1599
1634
 
1600
1635
  --
1601
1636
 
1602
- ##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L246) android
1637
+ ##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L286) android
1603
1638
 
1604
1639
  > def complex_finds_contains element, value
1605
1640
 
@@ -1617,7 +1652,7 @@ __Returns:__
1617
1652
 
1618
1653
  --
1619
1654
 
1620
- ##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L275) android
1655
+ ##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L315) android
1621
1656
 
1622
1657
  > def complex_find_exact class_name, value
1623
1658
 
@@ -1635,7 +1670,7 @@ __Returns:__
1635
1670
 
1636
1671
  --
1637
1672
 
1638
- ##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/helper.rb#L283) android
1673
+ ##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L323) android
1639
1674
 
1640
1675
  > def complex_finds_exact class_name, value
1641
1676
 
@@ -1653,7 +1688,21 @@ __Returns:__
1653
1688
 
1654
1689
  --
1655
1690
 
1656
- ##### [TextView](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L4) android
1691
+ ##### [get_source](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/helper.rb#L331) android
1692
+
1693
+ > def get_source
1694
+
1695
+ Returns XML string for the current page
1696
+ Fixes uiautomator's $ in node names.
1697
+ `android.app.ActionBar$Tab` becomes `android.app.ActionBar.Tab`
1698
+
1699
+ __Returns:__
1700
+
1701
+      [String]
1702
+
1703
+ --
1704
+
1705
+ ##### [TextView](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L4) android
1657
1706
 
1658
1707
  > TextView = 'android.widget.TextView'
1659
1708
 
@@ -1661,7 +1710,7 @@ __Returns:__
1661
1710
 
1662
1711
  --
1663
1712
 
1664
- ##### [text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L10) android
1713
+ ##### [text](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L10) android
1665
1714
 
1666
1715
  > def text value
1667
1716
 
@@ -1678,7 +1727,7 @@ __Returns:__
1678
1727
 
1679
1728
  --
1680
1729
 
1681
- ##### [texts](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L19) android
1730
+ ##### [texts](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L19) android
1682
1731
 
1683
1732
  > def texts value=false
1684
1733
 
@@ -1695,7 +1744,7 @@ __Returns:__
1695
1744
 
1696
1745
  --
1697
1746
 
1698
- ##### [first_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L26) android
1747
+ ##### [first_text](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L26) android
1699
1748
 
1700
1749
  > def first_text
1701
1750
 
@@ -1707,7 +1756,7 @@ __Returns:__
1707
1756
 
1708
1757
  --
1709
1758
 
1710
- ##### [last_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L32) android
1759
+ ##### [last_text](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L32) android
1711
1760
 
1712
1761
  > def last_text
1713
1762
 
@@ -1719,7 +1768,7 @@ __Returns:__
1719
1768
 
1720
1769
  --
1721
1770
 
1722
- ##### [text_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L39) android
1771
+ ##### [text_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L39) android
1723
1772
 
1724
1773
  > def text_exact value
1725
1774
 
@@ -1735,7 +1784,7 @@ __Returns:__
1735
1784
 
1736
1785
  --
1737
1786
 
1738
- ##### [texts_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/text.rb#L46) android
1787
+ ##### [texts_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/text.rb#L46) android
1739
1788
 
1740
1789
  > def texts_exact value
1741
1790
 
@@ -1751,7 +1800,7 @@ __Returns:__
1751
1800
 
1752
1801
  --
1753
1802
 
1754
- ##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L5) android
1803
+ ##### [_nodeset_to_uiselector](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/client_xpath.rb#L5) android
1755
1804
 
1756
1805
  > def _nodeset_to_uiselector opts={}
1757
1806
 
@@ -1759,7 +1808,7 @@ __Returns:__
1759
1808
 
1760
1809
  --
1761
1810
 
1762
- ##### [_client_xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L20) android
1811
+ ##### [_client_xpath](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/client_xpath.rb#L20) android
1763
1812
 
1764
1813
  > def _client_xpath opts={}
1765
1814
 
@@ -1767,7 +1816,7 @@ __Returns:__
1767
1816
 
1768
1817
  --
1769
1818
 
1770
- ##### [client_xpath](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L36) android
1819
+ ##### [client_xpath](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/client_xpath.rb#L36) android
1771
1820
 
1772
1821
  > def client_xpath xpath
1773
1822
 
@@ -1775,7 +1824,7 @@ __Returns:__
1775
1824
 
1776
1825
  --
1777
1826
 
1778
- ##### [client_xpaths](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/client_xpath.rb#L40) android
1827
+ ##### [client_xpaths](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/client_xpath.rb#L40) android
1779
1828
 
1780
1829
  > def client_xpaths xpath
1781
1830
 
@@ -1783,7 +1832,7 @@ __Returns:__
1783
1832
 
1784
1833
  --
1785
1834
 
1786
- ##### [alert_click](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L6) android
1835
+ ##### [alert_click](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/alert.rb#L6) android
1787
1836
 
1788
1837
  > def alert_click value
1789
1838
 
@@ -1799,7 +1848,7 @@ __Returns:__
1799
1848
 
1800
1849
  --
1801
1850
 
1802
- ##### [alert_accept](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L13) android
1851
+ ##### [alert_accept](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/alert.rb#L13) android
1803
1852
 
1804
1853
  > def alert_accept
1805
1854
 
@@ -1812,7 +1861,7 @@ __Returns:__
1812
1861
 
1813
1862
  --
1814
1863
 
1815
- ##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L20) android
1864
+ ##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/alert.rb#L20) android
1816
1865
 
1817
1866
  > def alert_accept_text
1818
1867
 
@@ -1825,7 +1874,7 @@ __Returns:__
1825
1874
 
1826
1875
  --
1827
1876
 
1828
- ##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L27) android
1877
+ ##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/alert.rb#L27) android
1829
1878
 
1830
1879
  > def alert_dismiss
1831
1880
 
@@ -1838,7 +1887,7 @@ __Returns:__
1838
1887
 
1839
1888
  --
1840
1889
 
1841
- ##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/alert.rb#L34) android
1890
+ ##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/alert.rb#L34) android
1842
1891
 
1843
1892
  > def alert_dismiss_text
1844
1893
 
@@ -1851,7 +1900,7 @@ __Returns:__
1851
1900
 
1852
1901
  --
1853
1902
 
1854
- ##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/mobile_methods.rb#L10) android
1903
+ ##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/mobile_methods.rb#L10) android
1855
1904
 
1856
1905
  > def uiautomator_find
1857
1906
 
@@ -1863,7 +1912,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
1863
1912
 
1864
1913
  --
1865
1914
 
1866
- ##### [Button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L4) android
1915
+ ##### [Button](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L4) android
1867
1916
 
1868
1917
  > Button = 'android.widget.Button'
1869
1918
 
@@ -1871,7 +1920,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
1871
1920
 
1872
1921
  --
1873
1922
 
1874
- ##### [ImageButton](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L5) android
1923
+ ##### [ImageButton](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L5) android
1875
1924
 
1876
1925
  > ImageButton = 'android.widget.ImageButton'
1877
1926
 
@@ -1879,7 +1928,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
1879
1928
 
1880
1929
  --
1881
1930
 
1882
- ##### [button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L43) android
1931
+ ##### [button](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L43) android
1883
1932
 
1884
1933
  > def button value
1885
1934
 
@@ -1896,7 +1945,7 @@ __Returns:__
1896
1945
 
1897
1946
  --
1898
1947
 
1899
- ##### [buttons](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L60) android
1948
+ ##### [buttons](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L60) android
1900
1949
 
1901
1950
  > def buttons value=false
1902
1951
 
@@ -1913,7 +1962,7 @@ __Returns:__
1913
1962
 
1914
1963
  --
1915
1964
 
1916
- ##### [first_button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L67) android
1965
+ ##### [first_button](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L67) android
1917
1966
 
1918
1967
  > def first_button
1919
1968
 
@@ -1925,7 +1974,7 @@ __Returns:__
1925
1974
 
1926
1975
  --
1927
1976
 
1928
- ##### [last_button](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L73) android
1977
+ ##### [last_button](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L73) android
1929
1978
 
1930
1979
  > def last_button
1931
1980
 
@@ -1937,7 +1986,7 @@ __Returns:__
1937
1986
 
1938
1987
  --
1939
1988
 
1940
- ##### [button_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L89) android
1989
+ ##### [button_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L89) android
1941
1990
 
1942
1991
  > def button_exact value
1943
1992
 
@@ -1953,7 +2002,7 @@ __Returns:__
1953
2002
 
1954
2003
  --
1955
2004
 
1956
- ##### [buttons_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/button.rb#L96) android
2005
+ ##### [buttons_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/button.rb#L96) android
1957
2006
 
1958
2007
  > def buttons_exact value
1959
2008
 
@@ -1969,7 +2018,7 @@ __Returns:__
1969
2018
 
1970
2019
  --
1971
2020
 
1972
- ##### [find](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L7) android
2021
+ ##### [find](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/generic.rb#L7) android
1973
2022
 
1974
2023
  > def find value
1975
2024
 
@@ -1985,7 +2034,7 @@ __Returns:__
1985
2034
 
1986
2035
  --
1987
2036
 
1988
- ##### [finds](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L14) android
2037
+ ##### [finds](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/generic.rb#L14) android
1989
2038
 
1990
2039
  > def finds value
1991
2040
 
@@ -2001,7 +2050,7 @@ __Returns:__
2001
2050
 
2002
2051
  --
2003
2052
 
2004
- ##### [find_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L21) android
2053
+ ##### [find_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/generic.rb#L21) android
2005
2054
 
2006
2055
  > def find_exact value
2007
2056
 
@@ -2017,7 +2066,7 @@ __Returns:__
2017
2066
 
2018
2067
  --
2019
2068
 
2020
- ##### [finds_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L28) android
2069
+ ##### [finds_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/generic.rb#L28) android
2021
2070
 
2022
2071
  > def finds_exact value
2023
2072
 
@@ -2033,7 +2082,7 @@ __Returns:__
2033
2082
 
2034
2083
  --
2035
2084
 
2036
- ##### [scroll_to](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L40) android
2085
+ ##### [scroll_to](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/generic.rb#L40) android
2037
2086
 
2038
2087
  > def scroll_to text
2039
2088
 
@@ -2049,7 +2098,7 @@ __Returns:__
2049
2098
 
2050
2099
  --
2051
2100
 
2052
- ##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/generic.rb#L52) android
2101
+ ##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/generic.rb#L52) android
2053
2102
 
2054
2103
  > def scroll_to_exact text
2055
2104
 
@@ -2065,7 +2114,7 @@ __Returns:__
2065
2114
 
2066
2115
  --
2067
2116
 
2068
- ##### [EditText](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L3) android
2117
+ ##### [EditText](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L3) android
2069
2118
 
2070
2119
  > EditText = 'android.widget.EditText'
2071
2120
 
@@ -2073,7 +2122,7 @@ __Returns:__
2073
2122
 
2074
2123
  --
2075
2124
 
2076
- ##### [textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L9) android
2125
+ ##### [textfield](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L9) android
2077
2126
 
2078
2127
  > def textfield value
2079
2128
 
@@ -2090,7 +2139,7 @@ __Returns:__
2090
2139
 
2091
2140
  --
2092
2141
 
2093
- ##### [textfields](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L18) android
2142
+ ##### [textfields](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L18) android
2094
2143
 
2095
2144
  > def textfields value=false
2096
2145
 
@@ -2107,7 +2156,7 @@ __Returns:__
2107
2156
 
2108
2157
  --
2109
2158
 
2110
- ##### [first_textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L25) android
2159
+ ##### [first_textfield](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L25) android
2111
2160
 
2112
2161
  > def first_textfield
2113
2162
 
@@ -2119,7 +2168,7 @@ __Returns:__
2119
2168
 
2120
2169
  --
2121
2170
 
2122
- ##### [last_textfield](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L31) android
2171
+ ##### [last_textfield](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L31) android
2123
2172
 
2124
2173
  > def last_textfield
2125
2174
 
@@ -2131,7 +2180,7 @@ __Returns:__
2131
2180
 
2132
2181
  --
2133
2182
 
2134
- ##### [textfield_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L38) android
2183
+ ##### [textfield_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L38) android
2135
2184
 
2136
2185
  > def textfield_exact value
2137
2186
 
@@ -2147,7 +2196,7 @@ __Returns:__
2147
2196
 
2148
2197
  --
2149
2198
 
2150
- ##### [textfields_exact](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/android/element/textfield.rb#L45) android
2199
+ ##### [textfields_exact](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/android/element/textfield.rb#L45) android
2151
2200
 
2152
2201
  > def textfields_exact value
2153
2202
 
@@ -2163,7 +2212,7 @@ __Returns:__
2163
2212
 
2164
2213
  --
2165
2214
 
2166
- ##### [value](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L10)
2215
+ ##### [value](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/patch.rb#L12)
2167
2216
 
2168
2217
  > def value
2169
2218
 
@@ -2173,7 +2222,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
2173
2222
 
2174
2223
  --
2175
2224
 
2176
- ##### [name](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L17)
2225
+ ##### [name](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/patch.rb#L19)
2177
2226
 
2178
2227
  > def name
2179
2228
 
@@ -2183,7 +2232,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
2183
2232
 
2184
2233
  --
2185
2234
 
2186
- ##### [location_rel](https://github.com/appium/ruby_lib/blob/a13158fb926212d84f26120c3bc5355c8cd34baf/lib/appium_lib/common/patch.rb#L29)
2235
+ ##### [location_rel](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/patch.rb#L31)
2187
2236
 
2188
2237
  > def location_rel
2189
2238
 
@@ -2201,3 +2250,11 @@ __Returns:__
2201
2250
 
2202
2251
  --
2203
2252
 
2253
+ ##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/7c3bc19905d0f008192a59dc7f5a938e3701ec8f/lib/appium_lib/common/patch.rb#L145)
2254
+
2255
+ > DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }
2256
+
2257
+
2258
+
2259
+ --
2260
+