appium_lib 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +48 -14
  3. data/android_tests/Rakefile +5 -2
  4. data/android_tests/api.apk +0 -0
  5. data/android_tests/lib/android/specs/android/element/alert.rb +1 -1
  6. data/android_tests/lib/android/specs/android/element/button.rb +1 -4
  7. data/android_tests/lib/android/specs/android/element/text.rb +15 -18
  8. data/android_tests/lib/android/specs/android/element/textfield.rb +1 -4
  9. data/android_tests/lib/android/specs/android/helper.rb +4 -6
  10. data/android_tests/lib/android/specs/common/device.rb +16 -6
  11. data/android_tests/lib/android/specs/common/helper.rb +6 -6
  12. data/android_tests/lib/android/specs/common/patch.rb +3 -3
  13. data/android_tests/lib/android/specs/driver.rb +1 -1
  14. data/appium_lib.gemspec +11 -11
  15. data/docs/android_docs.md +193 -210
  16. data/docs/ios_docs.md +505 -177
  17. data/docs/migration.md +27 -0
  18. data/docs_gen/make_docs.rb +17 -17
  19. data/ios_tests/Rakefile +6 -3
  20. data/ios_tests/lib/ios/specs/common/helper.rb +1 -1
  21. data/ios_tests/lib/ios/specs/common/patch.rb +2 -2
  22. data/ios_tests/lib/ios/specs/device/device.rb +3 -2
  23. data/ios_tests/lib/ios/specs/device/multi_touch.rb +1 -1
  24. data/ios_tests/lib/ios/specs/device/touch_actions.rb +2 -2
  25. data/ios_tests/lib/ios/specs/driver.rb +5 -5
  26. data/ios_tests/lib/ios/specs/ios/element/alert.rb +5 -5
  27. data/ios_tests/lib/ios/specs/ios/element/button.rb +2 -5
  28. data/ios_tests/lib/ios/specs/ios/element/text.rb +21 -21
  29. data/ios_tests/lib/ios/specs/ios/element/textfield.rb +1 -8
  30. data/ios_tests/lib/ios/specs/ios/helper.rb +2 -2
  31. data/ios_tests/lib/ios/specs/ios/patch.rb +1 -1
  32. data/ios_tests/lib/run.rb +1 -1
  33. data/ios_tests/upload/sauce_storage.rb +13 -12
  34. data/ios_tests/upload/upload.rb +1 -1
  35. data/lib/appium_lib/android/dynamic.rb +31 -30
  36. data/lib/appium_lib/android/element/button.rb +7 -11
  37. data/lib/appium_lib/android/element/generic.rb +5 -5
  38. data/lib/appium_lib/android/element/text.rb +8 -12
  39. data/lib/appium_lib/android/element/textfield.rb +3 -7
  40. data/lib/appium_lib/android/helper.rb +46 -10
  41. data/lib/appium_lib/common/helper.rb +4 -2
  42. data/lib/appium_lib/common/patch.rb +1 -1
  43. data/lib/appium_lib/common/version.rb +2 -2
  44. data/lib/appium_lib/device/device.rb +34 -27
  45. data/lib/appium_lib/device/multi_touch.rb +1 -1
  46. data/lib/appium_lib/device/touch_actions.rb +30 -28
  47. data/lib/appium_lib/driver.rb +3 -3
  48. data/lib/appium_lib/ios/element/button.rb +4 -8
  49. data/lib/appium_lib/ios/element/text.rb +8 -12
  50. data/lib/appium_lib/ios/element/textfield.rb +3 -7
  51. data/lib/appium_lib/ios/helper.rb +70 -40
  52. data/readme.md +6 -70
  53. data/release_notes.md +26 -0
  54. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b7d2dfd027a0f998e7f31a5ba2247568e580792
4
- data.tar.gz: 324e6e3c36b835cee8a331e452de782b31041160
3
+ metadata.gz: 2ce40d56e055e92bb34b040b9cb45450084436df
4
+ data.tar.gz: 2875a0d0a553c563162d3f68c97f3728373edf19
5
5
  SHA512:
6
- metadata.gz: 3d30760f200fcc1e1990c29d175c46c4a6424485302dd85bfc29e358ce87105863856cb6df467ee02fa67115523cca78267c0753a5d7289b252ff7075a654e6a
7
- data.tar.gz: 46d85eb8e78fab845e53a47caa09edee410b64a24580c6e5d6373b4a4a239e614e242183f78e9d7bead0403f95345ca4c13b348d268041530f6e62ce69d47710
6
+ metadata.gz: 74528e1f5109da1b8773a558b3ea5864fcbc036df7f3af980b22fd28f7c5adb7ee356a619ef5d058c5344d4511d35e3e0b80ca0811447442477c0d485ce5d7b9
7
+ data.tar.gz: 553b3d43b38502d460fbff85b84a65aff2b55811883d53c93badfc56f5b8b3e23cd1e42ab5e6f53e907dd1a57206c5515f9f2e3cb9a30b1698d7d9f5e292f02e
data/Rakefile CHANGED
@@ -5,10 +5,23 @@ require 'date'
5
5
  require 'posix/spawn'
6
6
 
7
7
  # Defines gem name.
8
- def repo_name; 'appium_lib' end # ruby_lib published as appium_lib
9
- def gh_name; 'ruby_lib' end # the name as used on github.com
10
- def version_file; "lib/#{repo_name}/common/version.rb" end
11
- def version_rgx; /\s*VERSION\s*=\s*'([^']+)'/m end
8
+ def repo_name
9
+ 'appium_lib'
10
+ end
11
+
12
+ # ruby_lib published as appium_lib
13
+ def gh_name
14
+ 'ruby_lib'
15
+ end
16
+
17
+ # the name as used on github.com
18
+ def version_file
19
+ "lib/#{repo_name}/common/version.rb"
20
+ end
21
+
22
+ def version_rgx
23
+ /\s*VERSION\s*=\s*'([^']+)'/m
24
+ end
12
25
 
13
26
  def version
14
27
  @version = @version || File.read(version_file).match(version_rgx)[1]
@@ -23,8 +36,8 @@ def bump value
23
36
  old_v = v_line[0]
24
37
  old_d = d_line[0]
25
38
 
26
- old_num = v_line[1]
27
- new_num = old_num.split('.')
39
+ old_num = v_line[1]
40
+ new_num = old_num.split('.')
28
41
  new_num[-1] = new_num[-1].to_i + 1
29
42
 
30
43
  if value == :y
@@ -33,7 +46,7 @@ def bump value
33
46
  elsif value == :x
34
47
  new_num[-1] = 0 # x.y.Z -> x.y.0
35
48
  new_num[-2] = 0 # x.Y.z -> x.0.z
36
- new_num[-3]= new_num[-3].to_i + 1
49
+ new_num[-3] = new_num[-3].to_i + 1
37
50
  end
38
51
 
39
52
  new_num = new_num.join '.'
@@ -43,7 +56,7 @@ def bump value
43
56
 
44
57
  old_date = d_line[1]
45
58
  new_date = Date.today.to_s
46
- new_d = old_d.sub old_date, new_date
59
+ new_d = old_d.sub old_date, new_date
47
60
  puts "#{old_date} -> #{new_date}" unless old_date == new_date
48
61
 
49
62
  data.sub! old_v, new_v
@@ -130,11 +143,14 @@ desc 'Uninstall gem'
130
143
  task :uninstall do
131
144
  cmd = "gem uninstall -aIx #{repo_name}"
132
145
  # rescue on gem not installed error.
133
- begin; sh "#{cmd}"; rescue; end
146
+ begin
147
+ sh "#{cmd}"
148
+ rescue
149
+ end
134
150
  end
135
151
 
136
152
  desc 'Install gem'
137
- task :install => [ :gem, :uninstall ] do
153
+ task :install => [:gem, :uninstall] do
138
154
  sh "gem install --no-rdoc --no-ri --local #{repo_name}-#{version}.gem"
139
155
  end
140
156
 
@@ -145,7 +161,7 @@ end
145
161
 
146
162
  desc 'Update release notes'
147
163
  task :notes do
148
- tag_sort = ->(tag1,tag2) do
164
+ tag_sort = ->(tag1, tag2) do
149
165
  tag1_numbers = tag1.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map! { |n| n.to_i }
150
166
  tag2_numbers = tag2.match(/\.?v(\d+\.\d+\.\d+)$/)[1].split('.').map! { |n| n.to_i }
151
167
  tag1_numbers <=> tag2_numbers
@@ -176,20 +192,38 @@ task :notes do
176
192
  end
177
193
 
178
194
  pairs.each_index do |a|
179
- data =`git log --pretty=oneline #{pairs[a]}`
195
+ data =`git log --pretty=oneline #{pairs[a]}`
180
196
  new_data = ''
181
197
  data.split("\n").each do |line|
182
- hex = line.match(/[a-zA-Z0-9]+/)[0]
198
+ hex = line.match(/[a-zA-Z0-9]+/)[0]
183
199
  # use first 7 chars to match GitHub
184
200
  comment = line.gsub(hex, '').strip
185
201
  next if comment == 'Update release notes'
186
202
  new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{comment}\n"
187
203
  end
188
- data = new_data + "\n"
204
+ data = new_data + "\n"
189
205
 
190
206
  # last pair is the released version.
191
207
  notes += "#### #{tag_date[a]}\n\n" + data + "\n"
192
208
  end
193
209
 
194
210
  File.open('release_notes.md', 'w') { |f| f.write notes.to_s.strip }
211
+ end
212
+
213
+ # Used to purge byte order marks that mess up YARD
214
+ def remove_non_ascii
215
+ Dir.glob('./**/*.rb') do |path|
216
+ path = File.expand_path path
217
+ next if File.directory? path
218
+
219
+ data = File.read path
220
+ data = data.encode('US-ASCII', invalid: :replace, undef: :replace, replace: '')
221
+ data = data.encode('UTF-8')
222
+ File.open(path, 'w') { |f| f.write data }
223
+ end
224
+ end
225
+
226
+ desc 'Remove non-ascii bytes'
227
+ task :byte do
228
+ remove_non_ascii
195
229
  end
@@ -5,7 +5,10 @@ task :default => :android
5
5
 
6
6
  # Run sh and ignore exception
7
7
  def run_sh cmd
8
- begin; sh cmd; rescue; end
8
+ begin
9
+ sh cmd
10
+ rescue
11
+ end
9
12
  end
10
13
 
11
14
  # Run cmd. On failure run install and try again.
@@ -32,7 +35,7 @@ end
32
35
  # rake android
33
36
  def run_android test_file=nil
34
37
  wait_for_valid_device
35
- path = File.expand_path('appium.txt', Rake.application.original_dir)
38
+ path = File.expand_path('appium.txt', Rake.application.original_dir)
36
39
  ENV['APPIUM_TXT'] = path
37
40
  puts "Rake appium.txt path is: #{path}"
38
41
  cmd = 'bundle exec ruby ./lib/run.rb android'
Binary file
@@ -1,4 +1,4 @@
1
- describe 'android/element/alert.rb' do
1
+ describe 'android/element/alert' do
2
2
  def open_alert
3
3
  # trigger the alert
4
4
  wait { button('OK Cancel dialog with a long message').click }
@@ -29,6 +29,7 @@ describe 'android/element/button' do
29
29
  t 'buttons' do
30
30
  exp = ['Zoom in', 'Modern zoom in', 'Thumbnail zoom']
31
31
  wait { buttons('zoom').map { |e| e.text }.must_equal exp }
32
+ wait { buttons.length.must_equal 6 }
32
33
  end
33
34
 
34
35
  t 'first_button' do
@@ -47,9 +48,5 @@ describe 'android/element/button' do
47
48
  wait { buttons_exact(fade_in).first.name.must_equal fade_in }
48
49
  end
49
50
 
50
- t 'e_buttons' do
51
- wait { e_buttons.length.must_equal 6 }
52
- end
53
-
54
51
  t { after_last }
55
52
  end
@@ -5,35 +5,32 @@ describe 'android/element/text' do
5
5
  proc { block.call }.must_raise Selenium::WebDriver::Error::NoSuchElementError
6
6
  end
7
7
 
8
- t 's_text' do
9
- wait { s_text(1).text.must_equal 'API Demos' }
10
- wait { s_text('mos').text.must_equal 'API Demos' }
8
+ t 'text' do
9
+ wait { text(1).text.must_equal 'API Demos' }
10
+ wait { text('mos').text.must_equal 'API Demos' }
11
11
  end
12
12
 
13
- t 's_texts' do
14
- wait { s_texts('i').length.must_equal 7 }
13
+ t 'texts' do
14
+ wait { texts('i').length.must_equal 6 }
15
+ wait { texts.length.must_equal 12 }
15
16
  end
16
17
 
17
- t 'first_s_text' do
18
- wait { first_s_text.text.must_equal 'API Demos' }
18
+ t 'first_text' do
19
+ wait { first_text.text.must_equal 'API Demos' }
19
20
  end
20
21
 
21
- t 'last_s_text' do
22
- wait { last_s_text.text.must_equal 'Views' }
22
+ t 'last_text' do
23
+ wait { last_text.text.must_equal 'Views' }
23
24
  end
24
25
 
25
- t 's_text_exact' do
26
- must_raise_no_element { s_text_exact 'mos' }
26
+ t 'text_exact' do
27
+ must_raise_no_element { text_exact 'mos' }
27
28
 
28
29
  # should pass
29
- wait { s_text_exact('API Demos').text.must_equal 'API Demos' }
30
+ wait { text_exact('API Demos').text.must_equal 'API Demos' }
30
31
  end
31
32
 
32
- t 's_texts_exact' do
33
- wait { s_texts_exact('API Demos').length.must_equal 1 }
34
- end
35
-
36
- t 'e_s_texts' do
37
- wait { e_s_texts.length.must_equal 14 }
33
+ t 'texts_exact' do
34
+ wait { texts_exact('API Demos').length.must_equal 1 }
38
35
  end
39
36
  end
@@ -32,6 +32,7 @@ describe 'android/element/textfield' do
32
32
 
33
33
  t 'textfields' do
34
34
  wait { textfields('right').first.text.must_equal right }
35
+ wait { textfields.length.must_equal 2 }
35
36
  end
36
37
 
37
38
  t 'first_textfield' do
@@ -52,9 +53,5 @@ describe 'android/element/textfield' do
52
53
  wait { textfields_exact(left).first.text.must_equal left }
53
54
  end
54
55
 
55
- t 'e_textfields' do
56
- wait { e_textfields.length.must_equal 2 }
57
- end
58
-
59
56
  t { after_last }
60
57
  end
@@ -1,17 +1,15 @@
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 14 }
4
+ wait { tags('android.widget.TextView').length.must_equal 12 }
5
5
  end
6
6
 
7
7
  def page_class_data
8
8
  (<<-TXT).strip
9
- 12x android.widget.TextView
10
- 4x android.widget.FrameLayout
11
- 2x android.widget.LinearLayout
12
- 2x android.view.View
9
+ 14x android.widget.TextView
10
+ 1x android.view.View
13
11
  1x android.widget.ListView
14
- 1x android.widget.ImageView
12
+ 1x android.widget.FrameLayout
15
13
  1x hierarchy
16
14
  TXT
17
15
  end
@@ -20,7 +20,7 @@ describe 'common/device' do
20
20
 
21
21
  t 'reset' do
22
22
  reset
23
- wait { s_text(1).text.must_equal 'API Demos' }
23
+ wait { text(1).text.must_equal 'API Demos' }
24
24
  end
25
25
 
26
26
  t 'close & launch' do
@@ -40,11 +40,16 @@ describe 'common/device' do
40
40
  wait { current_context.must_equal 'NATIVE_APP' }
41
41
  end
42
42
 
43
- t 'current_context=' do
43
+ t 'set_context' do
44
44
  wait do
45
- current_context= 'WEBVIEW'
46
- current_context.must_equal 'WEBVIEW'
45
+ scroll_to('Views').click
46
+ scroll_to('WebView').click
47
+ set_context 'WEBVIEW'
48
+ current_context.must_equal 'WEBVIEW_1'
47
49
  end
50
+
51
+ set_context 'NATIVE_APP'
52
+ 2.times { back; sleep 1 }
48
53
  end
49
54
 
50
55
  t 'within_context' do
@@ -90,16 +95,21 @@ describe 'common/device' do
90
95
  end
91
96
  wait { find_element(:name, 'Custom View') }
92
97
  back
98
+ wait { text_exact 'NFC' }
93
99
  end
94
100
 
95
101
  t 'swipe' do
96
102
  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 }
103
+ wait { !exists { text_exact 'NFC' } }
104
+ back
105
+ wait { text_exact 'NFC' }
97
106
  end
98
107
 
99
108
  t 'pinch & zoom' do
109
+ wait { text_exact 'NFC' }
110
+ wait { text_exact('Graphics').click }
111
+ wait { text('BitmapMesh').click }
100
112
  wait do
101
- s_text('Graphics').click
102
- s_text('BitmapMesh').click
103
113
  zoom 200
104
114
  pinch 75
105
115
  end
@@ -45,11 +45,11 @@ describe 'common/helper' do
45
45
 
46
46
  t 'back' do
47
47
  # start page
48
- wait { e_s_texts.length.must_equal 14 }
48
+ wait { texts.length.must_equal 12 }
49
49
  # nav to new page.
50
50
  # ele 0 is the title and can't be clicked.
51
- wait { s_text(2).click }
52
- wait { e_s_texts.length.must_equal 8 }
51
+ wait { text(2).click }
52
+ wait { texts.length.must_equal 5 }
53
53
  # go back
54
54
  back
55
55
  # start page
@@ -65,7 +65,7 @@ describe 'common/helper' do
65
65
  end
66
66
 
67
67
  t 'xpaths' do
68
- wait { xpaths('//android.widget.TextView').length.must_equal 14 }
68
+ wait { xpaths('//android.widget.TextView').length.must_equal 12 }
69
69
  end
70
70
 
71
71
  t 'ele_index' do
@@ -73,7 +73,7 @@ describe 'common/helper' do
73
73
  end
74
74
 
75
75
  t 'tags' do
76
- wait { tags('android.widget.TextView').length.must_equal 14 }
76
+ wait { tags('android.widget.TextView').length.must_equal 12 }
77
77
  end
78
78
 
79
79
  t 'find_ele_by_attr_include' do
@@ -86,7 +86,7 @@ describe 'common/helper' do
86
86
  t 'find_eles_by_attr_include' do
87
87
  wait do
88
88
  ele_count = find_eles_by_attr_include('android.widget.TextView', :text, 'e').length
89
- ele_count.must_equal 9
89
+ ele_count.must_equal 7
90
90
  end
91
91
  end
92
92
 
@@ -13,14 +13,14 @@ describe 'common/patch' do
13
13
  # t 'value' do; end # Doesn't work on Android
14
14
 
15
15
  t 'name' do
16
- wait { first_s_text.name.must_equal 'API Demos' }
16
+ wait { first_text.name.must_equal 'API Demos' }
17
17
  end
18
18
 
19
19
  # t 'tag_name' do; end # Doesn't work on Android
20
20
 
21
21
  t 'location_rel' do
22
22
  wait do
23
- loc = first_s_text.location_rel
23
+ loc = first_text.location_rel
24
24
  loc.x.class.must_equal String
25
25
  loc.y.class.must_equal String
26
26
  end
@@ -55,7 +55,7 @@ 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 13
58
+ value.must_equal 11
59
59
  end
60
60
  end
61
61
 
@@ -158,7 +158,7 @@ describe 'driver' do
158
158
  # any elements
159
159
  t 'find_elements' do
160
160
  wait do
161
- find_elements(:class_name, 'android.widget.TextView').length.must_equal 14
161
+ find_elements(:class_name, 'android.widget.TextView').length.must_equal 12
162
162
  end
163
163
  end
164
164
 
data/appium_lib.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  def self.add_to_path path
2
- path = File.expand_path "../#{path}/", __FILE__
2
+ path = File.expand_path "../#{path}/", __FILE__
3
3
 
4
- $:.unshift path unless $:.include? path
4
+ $:.unshift path unless $:.include? path
5
5
  end
6
6
 
7
7
  add_to_path 'lib'
@@ -12,15 +12,15 @@ Gem::Specification.new do |s|
12
12
  # 1.8.x is not supported
13
13
  s.required_ruby_version = '>= 1.9.3'
14
14
 
15
- s.name = 'appium_lib'
16
- s.version = Appium::VERSION
17
- s.date = Appium::DATE
18
- s.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
19
- s.description = s.summary = 'Ruby library for Appium'
20
- s.description += '.' # avoid identical warning
21
- s.authors = s.email = [ 'code@bootstraponline.com' ]
22
- s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
23
- s.require_paths = [ 'lib' ]
15
+ s.name = 'appium_lib'
16
+ s.version = Appium::VERSION
17
+ s.date = Appium::DATE
18
+ s.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
19
+ s.description = s.summary = 'Ruby library for Appium'
20
+ s.description += '.' # avoid identical warning
21
+ s.authors = s.email = ['code@bootstraponline.com']
22
+ s.homepage = 'https://github.com/appium/ruby_lib' # published as appium_lib
23
+ s.require_paths = ['lib']
24
24
 
25
25
  s.add_runtime_dependency 'selenium-webdriver', '~> 2.41', '>= 2.41.0'
26
26
  s.add_runtime_dependency 'awesome_print', '~> 1.2', '>= 1.2.0'
data/docs/android_docs.md CHANGED
@@ -1,4 +1,4 @@
1
- ##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L71)
1
+ ##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L71)
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/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L141)
30
+ ##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L141)
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/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L151)
41
+ ##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L151)
42
42
 
43
43
  > def self.promote_singleton_appium_methods main_module
44
44
 
@@ -46,7 +46,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
46
46
 
47
47
  --
48
48
 
49
- ##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L180)
49
+ ##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L180)
50
50
 
51
51
  > def self.promote_appium_methods class_array
52
52
 
@@ -64,7 +64,7 @@ __Parameters:__
64
64
 
65
65
  --
66
66
 
67
- ##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L213)
67
+ ##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L213)
68
68
 
69
69
  > def global_webdriver_http_sleep
70
70
 
@@ -72,7 +72,7 @@ The amount to sleep in seconds before every webdriver http call.
72
72
 
73
73
  --
74
74
 
75
- ##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L213)
75
+ ##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L213)
76
76
 
77
77
  > def global_webdriver_http_sleep=(value)
78
78
 
@@ -80,7 +80,7 @@ The amount to sleep in seconds before every webdriver http call.
80
80
 
81
81
  --
82
82
 
83
- ##### [initialize](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L234)
83
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L234)
84
84
 
85
85
  > def initialize opts={}
86
86
 
@@ -111,7 +111,7 @@ __Returns:__
111
111
 
112
112
  --
113
113
 
114
- ##### [driver_attributes](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L308)
114
+ ##### [driver_attributes](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L308)
115
115
 
116
116
  > def driver_attributes
117
117
 
@@ -119,7 +119,7 @@ Returns a hash of the driver attributes
119
119
 
120
120
  --
121
121
 
122
- ##### [device_is_android?](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L328)
122
+ ##### [device_is_android?](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L328)
123
123
 
124
124
  > def device_is_android?
125
125
 
@@ -131,7 +131,7 @@ __Returns:__
131
131
 
132
132
  --
133
133
 
134
- ##### [appium_server_version](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L344)
134
+ ##### [appium_server_version](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L344)
135
135
 
136
136
  > def appium_server_version
137
137
 
@@ -152,7 +152,7 @@ __Returns:__
152
152
 
153
153
  --
154
154
 
155
- ##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L350)
155
+ ##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L350)
156
156
 
157
157
  > def self.absolute_app_path app_path
158
158
 
@@ -164,7 +164,7 @@ __Returns:__
164
164
 
165
165
  --
166
166
 
167
- ##### [server_url](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L374)
167
+ ##### [server_url](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L374)
168
168
 
169
169
  > def server_url
170
170
 
@@ -176,7 +176,7 @@ __Returns:__
176
176
 
177
177
  --
178
178
 
179
- ##### [restart](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L385)
179
+ ##### [restart](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L385)
180
180
 
181
181
  > def restart
182
182
 
@@ -188,7 +188,7 @@ __Returns:__
188
188
 
189
189
  --
190
190
 
191
- ##### [driver](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L392)
191
+ ##### [driver](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L392)
192
192
 
193
193
  > def driver
194
194
 
@@ -200,7 +200,7 @@ __Returns:__
200
200
 
201
201
  --
202
202
 
203
- ##### [screenshot](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L402)
203
+ ##### [screenshot](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L402)
204
204
 
205
205
  > def screenshot png_save_path
206
206
 
@@ -218,7 +218,7 @@ __Returns:__
218
218
 
219
219
  --
220
220
 
221
- ##### [driver_quit](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L409)
221
+ ##### [driver_quit](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L409)
222
222
 
223
223
  > def driver_quit
224
224
 
@@ -230,7 +230,7 @@ __Returns:__
230
230
 
231
231
  --
232
232
 
233
- ##### [start_driver](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L417)
233
+ ##### [start_driver](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L417)
234
234
 
235
235
  > def start_driver
236
236
 
@@ -242,7 +242,7 @@ __Returns:__
242
242
 
243
243
  --
244
244
 
245
- ##### [no_wait](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L443)
245
+ ##### [no_wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L443)
246
246
 
247
247
  > def no_wait
248
248
 
@@ -250,7 +250,7 @@ Set implicit wait and default_wait to zero.
250
250
 
251
251
  --
252
252
 
253
- ##### [set_wait](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L462)
253
+ ##### [set_wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L462)
254
254
 
255
255
  > def set_wait timeout=nil
256
256
 
@@ -275,7 +275,7 @@ __Returns:__
275
275
 
276
276
  --
277
277
 
278
- ##### [default_wait](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L480)
278
+ ##### [default_wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L480)
279
279
 
280
280
  > def default_wait
281
281
 
@@ -288,7 +288,7 @@ __Returns:__
288
288
 
289
289
  --
290
290
 
291
- ##### [exists](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L496)
291
+ ##### [exists](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L496)
292
292
 
293
293
  > def exists pre_check=0, post_check=@default_wait, &search_block
294
294
 
@@ -314,7 +314,7 @@ __Returns:__
314
314
 
315
315
  --
316
316
 
317
- ##### [execute_script](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L520)
317
+ ##### [execute_script](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L520)
318
318
 
319
319
  > def execute_script script, *args
320
320
 
@@ -332,7 +332,7 @@ __Returns:__
332
332
 
333
333
  --
334
334
 
335
- ##### [find_elements](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L528)
335
+ ##### [find_elements](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L528)
336
336
 
337
337
  > def find_elements *args
338
338
 
@@ -348,7 +348,7 @@ __Returns:__
348
348
 
349
349
  --
350
350
 
351
- ##### [find_element](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L536)
351
+ ##### [find_element](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L536)
352
352
 
353
353
  > def find_element *args
354
354
 
@@ -364,7 +364,7 @@ __Returns:__
364
364
 
365
365
  --
366
366
 
367
- ##### [x](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/driver.rb#L543)
367
+ ##### [x](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L543)
368
368
 
369
369
  > def x
370
370
 
@@ -377,7 +377,7 @@ __Returns:__
377
377
 
378
378
  --
379
379
 
380
- ##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L7)
380
+ ##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L7)
381
381
 
382
382
  > NoArgMethods = {
383
383
 
@@ -385,7 +385,7 @@ __Returns:__
385
385
 
386
386
  --
387
387
 
388
- ##### [app_strings](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L23)
388
+ ##### [app_strings](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L22)
389
389
 
390
390
  > def app_strings
391
391
 
@@ -396,7 +396,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
396
396
 
397
397
  --
398
398
 
399
- ##### [background_app](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L29)
399
+ ##### [background_app](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L28)
400
400
 
401
401
  > def background_app
402
402
 
@@ -405,7 +405,7 @@ This is a blocking application
405
405
 
406
406
  --
407
407
 
408
- ##### [current_activity](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L34)
408
+ ##### [current_activity](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L33)
409
409
 
410
410
  > def current_activity
411
411
 
@@ -413,7 +413,7 @@ This is a blocking application
413
413
 
414
414
  --
415
415
 
416
- ##### [launch](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L36)
416
+ ##### [launch](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L35)
417
417
 
418
418
  > def launch
419
419
 
@@ -421,7 +421,7 @@ Start the simulator and applicaton configured with desired capabilities
421
421
 
422
422
  --
423
423
 
424
- ##### [reset](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L39)
424
+ ##### [reset](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L38)
425
425
 
426
426
  > def reset
427
427
 
@@ -429,7 +429,7 @@ Reset the device, relaunching the application.
429
429
 
430
430
  --
431
431
 
432
- ##### [shake](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L42)
432
+ ##### [shake](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L41)
433
433
 
434
434
  > def shake
435
435
 
@@ -437,7 +437,7 @@ Cause the device to shake
437
437
 
438
438
  --
439
439
 
440
- ##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L45)
440
+ ##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L44)
441
441
 
442
442
  > def toggle_flight_mode
443
443
 
@@ -445,7 +445,7 @@ toggle flight mode on or off
445
445
 
446
446
  --
447
447
 
448
- ##### [complex_find](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L48)
448
+ ##### [complex_find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L47)
449
449
 
450
450
  > def complex_find
451
451
 
@@ -466,7 +466,7 @@ __Parameters:__
466
466
 
467
467
  --
468
468
 
469
- ##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L60)
469
+ ##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L59)
470
470
 
471
471
  > def hide_keyboard
472
472
 
@@ -479,7 +479,7 @@ Defaults to 'Done'.
479
479
 
480
480
  --
481
481
 
482
- ##### [key_event](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L69)
482
+ ##### [key_event](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L68)
483
483
 
484
484
  > def key_event
485
485
 
@@ -493,7 +493,7 @@ __Parameters:__
493
493
 
494
494
  --
495
495
 
496
- ##### [push_file](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L74)
496
+ ##### [push_file](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L73)
497
497
 
498
498
  > def push_file
499
499
 
@@ -507,7 +507,7 @@ __Parameters:__
507
507
 
508
508
  --
509
509
 
510
- ##### [pull_file](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L79)
510
+ ##### [pull_file](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L78)
511
511
 
512
512
  > def pull_file
513
513
 
@@ -524,7 +524,7 @@ __Parameters:__
524
524
 
525
525
  --
526
526
 
527
- ##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L277)
527
+ ##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L283)
528
528
 
529
529
  > def extend_search_contexts
530
530
 
@@ -532,7 +532,7 @@ __Parameters:__
532
532
 
533
533
  --
534
534
 
535
- ##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L277)
535
+ ##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L283)
536
536
 
537
537
  > def accessiblity_id_find
538
538
 
@@ -544,7 +544,7 @@ find_element/s with their accessibility_id
544
544
 
545
545
  --
546
546
 
547
- ##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L283)
547
+ ##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L289)
548
548
 
549
549
  > def add_touch_actions
550
550
 
@@ -552,13 +552,13 @@ find_element/s with their accessibility_id
552
552
 
553
553
  --
554
554
 
555
- ##### [current_context=](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L307)
555
+ ##### [set_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L313)
556
556
 
557
- > def current_context=
557
+ > def set_context
558
558
 
559
559
  Change the context to the given context.
560
560
  ```ruby
561
- current_context= "NATIVE_APP"
561
+ set_context "NATIVE_APP"
562
562
  ```
563
563
 
564
564
  __Parameters:__
@@ -567,7 +567,7 @@ __Parameters:__
567
567
 
568
568
  --
569
569
 
570
- ##### [current_context](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L315)
570
+ ##### [current_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L321)
571
571
 
572
572
  > def current_context
573
573
 
@@ -579,7 +579,7 @@ __Returns:__
579
579
 
580
580
  --
581
581
 
582
- ##### [available_contexts](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L318)
582
+ ##### [available_contexts](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L324)
583
583
 
584
584
  > def available_contexts
585
585
 
@@ -591,7 +591,7 @@ __Returns:__
591
591
 
592
592
  --
593
593
 
594
- ##### [within_context](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L328)
594
+ ##### [within_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L334)
595
595
 
596
596
  > def within_context(context)
597
597
 
@@ -607,15 +607,15 @@ __Parameters:__
607
607
 
608
608
  --
609
609
 
610
- ##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/device.rb#L335)
610
+ ##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L342)
611
611
 
612
612
  > def switch_to_default_context
613
613
 
614
- Change to the default context. This is equivalent to `current_context= nil`.
614
+ Change to the default context. This is equivalent to `set_context nil`.
615
615
 
616
616
  --
617
617
 
618
- ##### [pinch](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/multi_touch.rb#L30)
618
+ ##### [pinch](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L30)
619
619
 
620
620
  > def pinch(percentage=25, auto_perform=true)
621
621
 
@@ -634,7 +634,7 @@ __Parameters:__
634
634
 
635
635
  --
636
636
 
637
- ##### [zoom](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/multi_touch.rb#L58)
637
+ ##### [zoom](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L58)
638
638
 
639
639
  > def zoom(percentage=200, auto_perform=true)
640
640
 
@@ -653,7 +653,7 @@ __Parameters:__
653
653
 
654
654
  --
655
655
 
656
- ##### [initialize](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/multi_touch.rb#L79)
656
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L79)
657
657
 
658
658
  > def initialize
659
659
 
@@ -665,7 +665,7 @@ __Returns:__
665
665
 
666
666
  --
667
667
 
668
- ##### [add](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/multi_touch.rb#L85)
668
+ ##### [add](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L85)
669
669
 
670
670
  > def add(chain)
671
671
 
@@ -677,7 +677,7 @@ __Parameters:__
677
677
 
678
678
  --
679
679
 
680
- ##### [perform](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/multi_touch.rb#L90)
680
+ ##### [perform](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L90)
681
681
 
682
682
  > def perform
683
683
 
@@ -685,15 +685,15 @@ Ask Appium to perform the actions
685
685
 
686
686
  --
687
687
 
688
- ##### [ACTIONS](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L12)
688
+ ##### [ACTIONS](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L12)
689
689
 
690
- > ACTIONS = [:move_to, :press_for_duration, :press, :release, :tap, :wait, :perform]
690
+ > ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
691
691
 
692
692
 
693
693
 
694
694
  --
695
695
 
696
- ##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L13)
696
+ ##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L13)
697
697
 
698
698
  > COMPLEX_ACTIONS = [:swipe]
699
699
 
@@ -701,7 +701,7 @@ Ask Appium to perform the actions
701
701
 
702
702
  --
703
703
 
704
- ##### [actions](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L27)
704
+ ##### [actions](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L27)
705
705
 
706
706
  > def actions
707
707
 
@@ -709,7 +709,7 @@ Returns the value of attribute actions
709
709
 
710
710
  --
711
711
 
712
- ##### [initialize](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L29)
712
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L29)
713
713
 
714
714
  > def initialize
715
715
 
@@ -721,7 +721,7 @@ __Returns:__
721
721
 
722
722
  --
723
723
 
724
- ##### [move_to](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L37)
724
+ ##### [move_to](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L37)
725
725
 
726
726
  > def move_to(opts)
727
727
 
@@ -733,25 +733,25 @@ __Parameters:__
733
733
 
734
734
  --
735
735
 
736
- ##### [press_for_duration](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L47)
736
+ ##### [long_press](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L47)
737
737
 
738
- > def press_for_duration(element, x, y, duration)
738
+ > def long_press(opts)
739
739
 
740
740
  Press down for a specific duration.
741
741
 
742
742
  __Parameters:__
743
743
 
744
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[WebDriver::Element] element - the element to press.
744
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Hash] element - a customizable set of options
745
745
 
746
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[integer] x - x co-ordinate to press on.
746
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Hash] x - a customizable set of options
747
747
 
748
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[integer] y - y co-ordinate to press on.
748
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Hash] y - a customizable set of options
749
749
 
750
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[integer] duration - Number of seconds to press.
750
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Hash] duration - a customizable set of options
751
751
 
752
752
  --
753
753
 
754
- ##### [press](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L58)
754
+ ##### [press](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L59)
755
755
 
756
756
  > def press(opts)
757
757
 
@@ -764,7 +764,7 @@ __Parameters:__
764
764
 
765
765
  --
766
766
 
767
- ##### [release](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L69)
767
+ ##### [release](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L70)
768
768
 
769
769
  > def release(opts=nil)
770
770
 
@@ -776,7 +776,7 @@ __Parameters:__
776
776
 
777
777
  --
778
778
 
779
- ##### [tap](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L80)
779
+ ##### [tap](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L81)
780
780
 
781
781
  > def tap(opts)
782
782
 
@@ -788,19 +788,19 @@ __Parameters:__
788
788
 
789
789
  --
790
790
 
791
- ##### [wait](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L88)
791
+ ##### [wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L90)
792
792
 
793
- > def wait(seconds)
793
+ > def wait(milliseconds)
794
794
 
795
- Pause for a number of seconds before the next action
795
+ Pause for a number of milliseconds before the next action
796
796
 
797
797
  __Parameters:__
798
798
 
799
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[integer] seconds - Number of seconds to pause for
799
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[integer] milliseconds - Number of milliseconds to pause for
800
800
 
801
801
  --
802
802
 
803
- ##### [swipe](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L99)
803
+ ##### [swipe](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L101)
804
804
 
805
805
  > def swipe(opts)
806
806
 
@@ -812,7 +812,7 @@ __Parameters:__
812
812
 
813
813
  --
814
814
 
815
- ##### [perform](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L114)
815
+ ##### [perform](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L116)
816
816
 
817
817
  > def perform
818
818
 
@@ -820,7 +820,7 @@ Ask the driver to perform all actions in this action chain.
820
820
 
821
821
  --
822
822
 
823
- ##### [cancel](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L120)
823
+ ##### [cancel](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L122)
824
824
 
825
825
  > def cancel
826
826
 
@@ -828,7 +828,7 @@ Does nothing, currently.
828
828
 
829
829
  --
830
830
 
831
- ##### [chain_method](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L128)
831
+ ##### [chain_method](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L130)
832
832
 
833
833
  > def chain_method(method, args=nil)
834
834
 
@@ -836,7 +836,7 @@ Does nothing, currently.
836
836
 
837
837
  --
838
838
 
839
- ##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/device/touch_actions.rb#L137)
839
+ ##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L139)
840
840
 
841
841
  > def args_with_ele_ref(args)
842
842
 
@@ -844,7 +844,7 @@ Does nothing, currently.
844
844
 
845
845
  --
846
846
 
847
- ##### [wait](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L33)
847
+ ##### [wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L33)
848
848
 
849
849
  > def wait max_wait=30, interval=0.5, &block
850
850
 
@@ -871,7 +871,7 @@ __Returns:__
871
871
 
872
872
  --
873
873
 
874
- ##### [ignore](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L49)
874
+ ##### [ignore](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L49)
875
875
 
876
876
  > def ignore &block
877
877
 
@@ -879,7 +879,7 @@ Return block.call and ignore any exceptions.
879
879
 
880
880
  --
881
881
 
882
- ##### [wait_true](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L64)
882
+ ##### [wait_true](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L64)
883
883
 
884
884
  > def wait_true max_wait=30, interval=0.5, &block
885
885
 
@@ -902,7 +902,7 @@ __Returns:__
902
902
 
903
903
  --
904
904
 
905
- ##### [back](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L81)
905
+ ##### [back](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L81)
906
906
 
907
907
  > def back
908
908
 
@@ -914,7 +914,7 @@ __Returns:__
914
914
 
915
915
  --
916
916
 
917
- ##### [session_id](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L86)
917
+ ##### [session_id](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L86)
918
918
 
919
919
  > def session_id
920
920
 
@@ -922,7 +922,7 @@ For Sauce Labs reporting. Returns the current session id.
922
922
 
923
923
  --
924
924
 
925
- ##### [xpath](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L94)
925
+ ##### [xpath](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L94)
926
926
 
927
927
  > def xpath xpath_str
928
928
 
@@ -938,7 +938,7 @@ __Returns:__
938
938
 
939
939
  --
940
940
 
941
- ##### [xpaths](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L102)
941
+ ##### [xpaths](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L102)
942
942
 
943
943
  > def xpaths xpath_str
944
944
 
@@ -954,7 +954,7 @@ __Returns:__
954
954
 
955
955
  --
956
956
 
957
- ##### [source](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L108)
957
+ ##### [source](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L108)
958
958
 
959
959
  > def source
960
960
 
@@ -966,7 +966,7 @@ __Returns:__
966
966
 
967
967
  --
968
968
 
969
- ##### [get_source](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L118)
969
+ ##### [get_source](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L118)
970
970
 
971
971
  > def get_source
972
972
 
@@ -979,7 +979,7 @@ __Returns:__
979
979
 
980
980
  --
981
981
 
982
- ##### [result](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L125)
982
+ ##### [result](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L125)
983
983
 
984
984
  > def result
985
985
 
@@ -987,7 +987,7 @@ Returns the value of attribute result
987
987
 
988
988
  --
989
989
 
990
- ##### [initialize](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L127)
990
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L127)
991
991
 
992
992
  > def initialize
993
993
 
@@ -999,7 +999,7 @@ __Returns:__
999
999
 
1000
1000
  --
1001
1001
 
1002
- ##### [reset](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L131)
1002
+ ##### [reset](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L131)
1003
1003
 
1004
1004
  > def reset
1005
1005
 
@@ -1007,7 +1007,7 @@ __Returns:__
1007
1007
 
1008
1008
  --
1009
1009
 
1010
- ##### [start_element](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L136)
1010
+ ##### [start_element](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L136)
1011
1011
 
1012
1012
  > def start_element name, attrs = []
1013
1013
 
@@ -1015,7 +1015,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
1015
1015
 
1016
1016
  --
1017
1017
 
1018
- ##### [formatted_result](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L140)
1018
+ ##### [formatted_result](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L142)
1019
1019
 
1020
1020
  > def formatted_result
1021
1021
 
@@ -1023,15 +1023,15 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
1023
1023
 
1024
1024
  --
1025
1025
 
1026
- ##### [get_page_class](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L151)
1026
+ ##### [get_page_class](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L153)
1027
1027
 
1028
1028
  > def get_page_class
1029
1029
 
1030
- Returns a string of class counts.
1030
+ Returns a string of class counts of visible elements.
1031
1031
 
1032
1032
  --
1033
1033
 
1034
- ##### [page_class](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L162)
1034
+ ##### [page_class](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L164)
1035
1035
 
1036
1036
  > def page_class
1037
1037
 
@@ -1040,7 +1040,7 @@ Useful for appium_console.
1040
1040
 
1041
1041
  --
1042
1042
 
1043
- ##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L172)
1043
+ ##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L174)
1044
1044
 
1045
1045
  > def px_to_window_rel opts={}
1046
1046
 
@@ -1052,7 +1052,7 @@ px_to_window_rel x: 50, y: 150
1052
1052
 
1053
1053
  --
1054
1054
 
1055
- ##### [xml_keys](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L189)
1055
+ ##### [xml_keys](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L191)
1056
1056
 
1057
1057
  > def xml_keys target
1058
1058
 
@@ -1068,7 +1068,7 @@ __Returns:__
1068
1068
 
1069
1069
  --
1070
1070
 
1071
- ##### [xml_values](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L197)
1071
+ ##### [xml_values](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L199)
1072
1072
 
1073
1073
  > def xml_values target
1074
1074
 
@@ -1084,7 +1084,7 @@ __Returns:__
1084
1084
 
1085
1085
  --
1086
1086
 
1087
- ##### [resolve_id](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/helper.rb#L205)
1087
+ ##### [resolve_id](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L207)
1088
1088
 
1089
1089
  > def resolve_id id
1090
1090
 
@@ -1100,7 +1100,7 @@ __Returns:__
1100
1100
 
1101
1101
  --
1102
1102
 
1103
- ##### [window_size](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/element/window.rb#L5)
1103
+ ##### [window_size](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/element/window.rb#L5)
1104
1104
 
1105
1105
  > def window_size
1106
1106
 
@@ -1108,7 +1108,7 @@ Get the window's size
1108
1108
 
1109
1109
  --
1110
1110
 
1111
- ##### [result](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L7) android
1111
+ ##### [result](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L7) android
1112
1112
 
1113
1113
  > def result
1114
1114
 
@@ -1116,7 +1116,7 @@ TODO: Support strings.xml ids
1116
1116
 
1117
1117
  --
1118
1118
 
1119
- ##### [keys](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L7) android
1119
+ ##### [keys](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L7) android
1120
1120
 
1121
1121
  > def keys
1122
1122
 
@@ -1124,7 +1124,7 @@ TODO: Support strings.xml ids
1124
1124
 
1125
1125
  --
1126
1126
 
1127
- ##### [filter](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L9) android
1127
+ ##### [filter](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L9) android
1128
1128
 
1129
1129
  > def filter
1130
1130
 
@@ -1132,7 +1132,7 @@ TODO: Support strings.xml ids
1132
1132
 
1133
1133
  --
1134
1134
 
1135
- ##### [filter=](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L14) android
1135
+ ##### [filter=](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L14) android
1136
1136
 
1137
1137
  > def filter= value
1138
1138
 
@@ -1140,7 +1140,7 @@ convert to string to support symbols
1140
1140
 
1141
1141
  --
1142
1142
 
1143
- ##### [initialize](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L20) android
1143
+ ##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L20) android
1144
1144
 
1145
1145
  > def initialize
1146
1146
 
@@ -1152,7 +1152,7 @@ __Returns:__
1152
1152
 
1153
1153
  --
1154
1154
 
1155
- ##### [reset](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L25) android
1155
+ ##### [reset](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L25) android
1156
1156
 
1157
1157
  > def reset
1158
1158
 
@@ -1160,7 +1160,7 @@ __Returns:__
1160
1160
 
1161
1161
  --
1162
1162
 
1163
- ##### [start_element](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L31) android
1163
+ ##### [start_element](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L31) android
1164
1164
 
1165
1165
  > def start_element name, attrs = []
1166
1166
 
@@ -1168,7 +1168,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
1168
1168
 
1169
1169
  --
1170
1170
 
1171
- ##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L65) android
1171
+ ##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L88) android
1172
1172
 
1173
1173
  > def get_android_inspect class_name=false
1174
1174
 
@@ -1187,17 +1187,17 @@ __Returns:__
1187
1187
 
1188
1188
  --
1189
1189
 
1190
- ##### [page](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L80) android
1190
+ ##### [page](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L103) android
1191
1191
 
1192
- > def page class_name=false
1192
+ > def page opts={}
1193
1193
 
1194
1194
  Intended for use with console.
1195
1195
  Inspects and prints the current page.
1196
- if false (default) then all classes will be inspected
1196
+ if nil (default) then all classes will be inspected
1197
1197
 
1198
1198
  __Parameters:__
1199
1199
 
1200
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] class_name - the class name to filter on.
1200
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Hash] class - a customizable set of options
1201
1201
 
1202
1202
  __Returns:__
1203
1203
 
@@ -1205,7 +1205,7 @@ __Returns:__
1205
1205
 
1206
1206
  --
1207
1207
 
1208
- ##### [current_app](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L88) android
1208
+ ##### [current_app](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L112) android
1209
1209
 
1210
1210
  > def current_app
1211
1211
 
@@ -1215,11 +1215,11 @@ noinspection RubyArgCount
1215
1215
 
1216
1216
  --
1217
1217
 
1218
- ##### [id](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L102) android
1218
+ ##### [id](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L137) android
1219
1219
 
1220
1220
  > def id id
1221
1221
 
1222
- Find by id
1222
+ Find the first matching element by id
1223
1223
 
1224
1224
  __Parameters:__
1225
1225
 
@@ -1231,7 +1231,23 @@ __Returns:__
1231
1231
 
1232
1232
  --
1233
1233
 
1234
- ##### [ele_index](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L116) android
1234
+ ##### [ids](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L144) android
1235
+
1236
+ > def ids id
1237
+
1238
+ Find all matching elements by id
1239
+
1240
+ __Parameters:__
1241
+
1242
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String] id - the id to search for
1243
+
1244
+ __Returns:__
1245
+
1246
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Element]
1247
+
1248
+ --
1249
+
1250
+ ##### [ele_index](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L152) android
1235
1251
 
1236
1252
  > def ele_index class_name, index
1237
1253
 
@@ -1249,7 +1265,7 @@ __Returns:__
1249
1265
 
1250
1266
  --
1251
1267
 
1252
- ##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L134) android
1268
+ ##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L170) android
1253
1269
 
1254
1270
  > def find_ele_by_attr class_name, attr, value
1255
1271
 
@@ -1269,7 +1285,7 @@ __Returns:__
1269
1285
 
1270
1286
  --
1271
1287
 
1272
- ##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L143) android
1288
+ ##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L179) android
1273
1289
 
1274
1290
  > def find_eles_by_attr class_name, attr, value
1275
1291
 
@@ -1289,7 +1305,7 @@ __Returns:__
1289
1305
 
1290
1306
  --
1291
1307
 
1292
- ##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L157) android
1308
+ ##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L193) android
1293
1309
 
1294
1310
  > def find_ele_by_attr_include class_name, attr, value
1295
1311
 
@@ -1309,7 +1325,7 @@ __Returns:__
1309
1325
 
1310
1326
  --
1311
1327
 
1312
- ##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L166) android
1328
+ ##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L202) android
1313
1329
 
1314
1330
  > def find_eles_by_attr_include class_name, attr, value
1315
1331
 
@@ -1329,7 +1345,7 @@ __Returns:__
1329
1345
 
1330
1346
  --
1331
1347
 
1332
- ##### [first_ele](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L173) android
1348
+ ##### [first_ele](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L209) android
1333
1349
 
1334
1350
  > def first_ele class_name
1335
1351
 
@@ -1345,7 +1361,7 @@ __Returns:__
1345
1361
 
1346
1362
  --
1347
1363
 
1348
- ##### [last_ele](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L181) android
1364
+ ##### [last_ele](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L217) android
1349
1365
 
1350
1366
  > def last_ele class_name
1351
1367
 
@@ -1361,7 +1377,7 @@ __Returns:__
1361
1377
 
1362
1378
  --
1363
1379
 
1364
- ##### [tag](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L189) android
1380
+ ##### [tag](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L225) android
1365
1381
 
1366
1382
  > def tag class_name
1367
1383
 
@@ -1377,7 +1393,7 @@ __Returns:__
1377
1393
 
1378
1394
  --
1379
1395
 
1380
- ##### [tags](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L197) android
1396
+ ##### [tags](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L233) android
1381
1397
 
1382
1398
  > def tags class_name
1383
1399
 
@@ -1393,7 +1409,7 @@ __Returns:__
1393
1409
 
1394
1410
  --
1395
1411
 
1396
- ##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L232) android
1412
+ ##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L268) android
1397
1413
 
1398
1414
  > def xpath_visible_contains element, value
1399
1415
 
@@ -1411,7 +1427,7 @@ __Returns:__
1411
1427
 
1412
1428
  --
1413
1429
 
1414
- ##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L240) android
1430
+ ##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L276) android
1415
1431
 
1416
1432
  > def xpaths_visible_contains element, value
1417
1433
 
@@ -1429,7 +1445,7 @@ __Returns:__
1429
1445
 
1430
1446
  --
1431
1447
 
1432
- ##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L266) android
1448
+ ##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L302) android
1433
1449
 
1434
1450
  > def xpath_visible_exact element, value
1435
1451
 
@@ -1447,7 +1463,7 @@ __Returns:__
1447
1463
 
1448
1464
  --
1449
1465
 
1450
- ##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/helper.rb#L274) android
1466
+ ##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/helper.rb#L310) android
1451
1467
 
1452
1468
  > def xpaths_visible_exact element, value
1453
1469
 
@@ -1465,7 +1481,7 @@ __Returns:__
1465
1481
 
1466
1482
  --
1467
1483
 
1468
- ##### [TextView](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L4) android
1484
+ ##### [TextView](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L4) android
1469
1485
 
1470
1486
  > TextView = 'android.widget.TextView'
1471
1487
 
@@ -1473,9 +1489,9 @@ __Returns:__
1473
1489
 
1474
1490
  --
1475
1491
 
1476
- ##### [s_text](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L10) android
1492
+ ##### [text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L10) android
1477
1493
 
1478
- > def s_text value
1494
+ > def text value
1479
1495
 
1480
1496
  Find the first TextView that contains value or by index.
1481
1497
  If int then the TextView at that index is returned.
@@ -1490,11 +1506,12 @@ __Returns:__
1490
1506
 
1491
1507
  --
1492
1508
 
1493
- ##### [s_texts](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L18) android
1509
+ ##### [texts](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L19) android
1494
1510
 
1495
- > def s_texts value
1511
+ > def texts value=false
1496
1512
 
1497
1513
  Find all TextViews containing value.
1514
+ If value is omitted, all texts are returned.
1498
1515
 
1499
1516
  __Parameters:__
1500
1517
 
@@ -1506,9 +1523,9 @@ __Returns:__
1506
1523
 
1507
1524
  --
1508
1525
 
1509
- ##### [first_s_text](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L24) android
1526
+ ##### [first_text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L26) android
1510
1527
 
1511
- > def first_s_text
1528
+ > def first_text
1512
1529
 
1513
1530
  Find the first TextView.
1514
1531
 
@@ -1518,9 +1535,9 @@ __Returns:__
1518
1535
 
1519
1536
  --
1520
1537
 
1521
- ##### [last_s_text](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L30) android
1538
+ ##### [last_text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L32) android
1522
1539
 
1523
- > def last_s_text
1540
+ > def last_text
1524
1541
 
1525
1542
  Find the last TextView.
1526
1543
 
@@ -1530,9 +1547,9 @@ __Returns:__
1530
1547
 
1531
1548
  --
1532
1549
 
1533
- ##### [s_text_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L37) android
1550
+ ##### [text_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L39) android
1534
1551
 
1535
- > def s_text_exact value
1552
+ > def text_exact value
1536
1553
 
1537
1554
  Find the first TextView that exactly matches value.
1538
1555
 
@@ -1546,9 +1563,9 @@ __Returns:__
1546
1563
 
1547
1564
  --
1548
1565
 
1549
- ##### [s_texts_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L44) android
1566
+ ##### [texts_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/text.rb#L46) android
1550
1567
 
1551
- > def s_texts_exact value
1568
+ > def texts_exact value
1552
1569
 
1553
1570
  Find all TextViews that exactly match value.
1554
1571
 
@@ -1562,19 +1579,7 @@ __Returns:__
1562
1579
 
1563
1580
  --
1564
1581
 
1565
- ##### [e_s_texts](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/text.rb#L50) android
1566
-
1567
- > def e_s_texts
1568
-
1569
- Find all TextViews.
1570
-
1571
- __Returns:__
1572
-
1573
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<TextView>]
1574
-
1575
- --
1576
-
1577
- ##### [alert_click](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/alert.rb#L6) android
1582
+ ##### [alert_click](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/alert.rb#L6) android
1578
1583
 
1579
1584
  > def alert_click value
1580
1585
 
@@ -1590,7 +1595,7 @@ __Returns:__
1590
1595
 
1591
1596
  --
1592
1597
 
1593
- ##### [alert_accept](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/alert.rb#L13) android
1598
+ ##### [alert_accept](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/alert.rb#L13) android
1594
1599
 
1595
1600
  > def alert_accept
1596
1601
 
@@ -1603,7 +1608,7 @@ __Returns:__
1603
1608
 
1604
1609
  --
1605
1610
 
1606
- ##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/alert.rb#L20) android
1611
+ ##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/alert.rb#L20) android
1607
1612
 
1608
1613
  > def alert_accept_text
1609
1614
 
@@ -1616,7 +1621,7 @@ __Returns:__
1616
1621
 
1617
1622
  --
1618
1623
 
1619
- ##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/alert.rb#L27) android
1624
+ ##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/alert.rb#L27) android
1620
1625
 
1621
1626
  > def alert_dismiss
1622
1627
 
@@ -1629,7 +1634,7 @@ __Returns:__
1629
1634
 
1630
1635
  --
1631
1636
 
1632
- ##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/alert.rb#L34) android
1637
+ ##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/alert.rb#L34) android
1633
1638
 
1634
1639
  > def alert_dismiss_text
1635
1640
 
@@ -1642,7 +1647,7 @@ __Returns:__
1642
1647
 
1643
1648
  --
1644
1649
 
1645
- ##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/mobile_methods.rb#L10) android
1650
+ ##### [uiautomator_find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/mobile_methods.rb#L10) android
1646
1651
 
1647
1652
  > def uiautomator_find
1648
1653
 
@@ -1654,7 +1659,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
1654
1659
 
1655
1660
  --
1656
1661
 
1657
- ##### [Button](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L4) android
1662
+ ##### [Button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L4) android
1658
1663
 
1659
1664
  > Button = 'android.widget.Button'
1660
1665
 
@@ -1662,7 +1667,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
1662
1667
 
1663
1668
  --
1664
1669
 
1665
- ##### [ImageButton](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L5) android
1670
+ ##### [ImageButton](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L5) android
1666
1671
 
1667
1672
  > ImageButton = 'android.widget.ImageButton'
1668
1673
 
@@ -1670,7 +1675,7 @@ find_element/s can be used with a [UISelector](http://developer.android.com/tool
1670
1675
 
1671
1676
  --
1672
1677
 
1673
- ##### [button](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L39) android
1678
+ ##### [button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L39) android
1674
1679
 
1675
1680
  > def button value
1676
1681
 
@@ -1687,11 +1692,12 @@ __Returns:__
1687
1692
 
1688
1693
  --
1689
1694
 
1690
- ##### [buttons](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L55) android
1695
+ ##### [buttons](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L56) android
1691
1696
 
1692
- > def buttons value
1697
+ > def buttons value=false
1693
1698
 
1694
- Find all buttons containing value
1699
+ Find all buttons containing value.
1700
+ If value is omitted, all buttons are returned.
1695
1701
 
1696
1702
  __Parameters:__
1697
1703
 
@@ -1703,7 +1709,7 @@ __Returns:__
1703
1709
 
1704
1710
  --
1705
1711
 
1706
- ##### [first_button](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L61) android
1712
+ ##### [first_button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L63) android
1707
1713
 
1708
1714
  > def first_button
1709
1715
 
@@ -1715,7 +1721,7 @@ __Returns:__
1715
1721
 
1716
1722
  --
1717
1723
 
1718
- ##### [last_button](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L67) android
1724
+ ##### [last_button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L69) android
1719
1725
 
1720
1726
  > def last_button
1721
1727
 
@@ -1727,7 +1733,7 @@ __Returns:__
1727
1733
 
1728
1734
  --
1729
1735
 
1730
- ##### [button_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L74) android
1736
+ ##### [button_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L76) android
1731
1737
 
1732
1738
  > def button_exact value
1733
1739
 
@@ -1743,7 +1749,7 @@ __Returns:__
1743
1749
 
1744
1750
  --
1745
1751
 
1746
- ##### [buttons_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L81) android
1752
+ ##### [buttons_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/button.rb#L83) android
1747
1753
 
1748
1754
  > def buttons_exact value
1749
1755
 
@@ -1759,19 +1765,7 @@ __Returns:__
1759
1765
 
1760
1766
  --
1761
1767
 
1762
- ##### [e_buttons](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/button.rb#L87) android
1763
-
1764
- > def e_buttons
1765
-
1766
- Find all buttons.
1767
-
1768
- __Returns:__
1769
-
1770
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<Button>]
1771
-
1772
- --
1773
-
1774
- ##### [find](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/generic.rb#L7) android
1768
+ ##### [find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/generic.rb#L7) android
1775
1769
 
1776
1770
  > def find value
1777
1771
 
@@ -1787,7 +1781,7 @@ __Returns:__
1787
1781
 
1788
1782
  --
1789
1783
 
1790
- ##### [finds](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/generic.rb#L14) android
1784
+ ##### [finds](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/generic.rb#L14) android
1791
1785
 
1792
1786
  > def finds value
1793
1787
 
@@ -1803,7 +1797,7 @@ __Returns:__
1803
1797
 
1804
1798
  --
1805
1799
 
1806
- ##### [find_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/generic.rb#L21) android
1800
+ ##### [find_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/generic.rb#L21) android
1807
1801
 
1808
1802
  > def find_exact value
1809
1803
 
@@ -1819,7 +1813,7 @@ __Returns:__
1819
1813
 
1820
1814
  --
1821
1815
 
1822
- ##### [finds_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/generic.rb#L28) android
1816
+ ##### [finds_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/generic.rb#L28) android
1823
1817
 
1824
1818
  > def finds_exact value
1825
1819
 
@@ -1835,7 +1829,7 @@ __Returns:__
1835
1829
 
1836
1830
  --
1837
1831
 
1838
- ##### [scroll_to](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/generic.rb#L35) android
1832
+ ##### [scroll_to](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/generic.rb#L35) android
1839
1833
 
1840
1834
  > def scroll_to text
1841
1835
 
@@ -1851,7 +1845,7 @@ __Returns:__
1851
1845
 
1852
1846
  --
1853
1847
 
1854
- ##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/generic.rb#L48) android
1848
+ ##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/generic.rb#L48) android
1855
1849
 
1856
1850
  > def scroll_to_exact text
1857
1851
 
@@ -1867,7 +1861,7 @@ __Returns:__
1867
1861
 
1868
1862
  --
1869
1863
 
1870
- ##### [EditText](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L3) android
1864
+ ##### [EditText](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L3) android
1871
1865
 
1872
1866
  > EditText = 'android.widget.EditText'
1873
1867
 
@@ -1875,7 +1869,7 @@ __Returns:__
1875
1869
 
1876
1870
  --
1877
1871
 
1878
- ##### [textfield](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L9) android
1872
+ ##### [textfield](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L9) android
1879
1873
 
1880
1874
  > def textfield value
1881
1875
 
@@ -1892,11 +1886,12 @@ __Returns:__
1892
1886
 
1893
1887
  --
1894
1888
 
1895
- ##### [textfields](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L17) android
1889
+ ##### [textfields](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L18) android
1896
1890
 
1897
- > def textfields value
1891
+ > def textfields value=false
1898
1892
 
1899
1893
  Find all EditTexts containing value.
1894
+ If value is omitted, all EditTexts are returned.
1900
1895
 
1901
1896
  __Parameters:__
1902
1897
 
@@ -1908,7 +1903,7 @@ __Returns:__
1908
1903
 
1909
1904
  --
1910
1905
 
1911
- ##### [first_textfield](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L23) android
1906
+ ##### [first_textfield](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L25) android
1912
1907
 
1913
1908
  > def first_textfield
1914
1909
 
@@ -1920,7 +1915,7 @@ __Returns:__
1920
1915
 
1921
1916
  --
1922
1917
 
1923
- ##### [last_textfield](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L29) android
1918
+ ##### [last_textfield](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L31) android
1924
1919
 
1925
1920
  > def last_textfield
1926
1921
 
@@ -1932,7 +1927,7 @@ __Returns:__
1932
1927
 
1933
1928
  --
1934
1929
 
1935
- ##### [textfield_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L36) android
1930
+ ##### [textfield_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L38) android
1936
1931
 
1937
1932
  > def textfield_exact value
1938
1933
 
@@ -1948,7 +1943,7 @@ __Returns:__
1948
1943
 
1949
1944
  --
1950
1945
 
1951
- ##### [textfields_exact](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L43) android
1946
+ ##### [textfields_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/android/element/textfield.rb#L45) android
1952
1947
 
1953
1948
  > def textfields_exact value
1954
1949
 
@@ -1964,19 +1959,7 @@ __Returns:__
1964
1959
 
1965
1960
  --
1966
1961
 
1967
- ##### [e_textfields](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/android/element/textfield.rb#L49) android
1968
-
1969
- > def e_textfields
1970
-
1971
- Find all EditTexts.
1972
-
1973
- __Returns:__
1974
-
1975
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Array<EditText>]
1976
-
1977
- --
1978
-
1979
- ##### [value](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/patch.rb#L10)
1962
+ ##### [value](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/patch.rb#L10)
1980
1963
 
1981
1964
  > def value
1982
1965
 
@@ -1986,7 +1969,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
1986
1969
 
1987
1970
  --
1988
1971
 
1989
- ##### [name](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/patch.rb#L17)
1972
+ ##### [name](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/patch.rb#L17)
1990
1973
 
1991
1974
  > def name
1992
1975
 
@@ -1996,7 +1979,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
1996
1979
 
1997
1980
  --
1998
1981
 
1999
- ##### [location_rel](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/patch.rb#L29)
1982
+ ##### [location_rel](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/patch.rb#L29)
2000
1983
 
2001
1984
  > def location_rel
2002
1985