appium_lib 9.0.0 → 9.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +21 -0
  3. data/android_tests/lib/android/specs/android/helper.rb +3 -5
  4. data/android_tests/lib/android/specs/common/command.rb +47 -0
  5. data/android_tests/lib/android/specs/common/helper.rb +8 -8
  6. data/android_tests/lib/android/specs/common/web_context.rb +1 -1
  7. data/android_tests/lib/android/specs/driver.rb +19 -11
  8. data/android_tests/lib/format.rb +3 -3
  9. data/android_tests/lib/run.rb +7 -5
  10. data/android_tests/readme.md +1 -1
  11. data/appium_lib.gemspec +6 -7
  12. data/contributing.md +10 -0
  13. data/docs/android_docs.md +252 -217
  14. data/docs/ios_docs.md +257 -222
  15. data/docs/ios_xcuitest.md +32 -4
  16. data/ios_tests/lib/common.rb +11 -55
  17. data/ios_tests/lib/ios/specs/common/command.rb +44 -0
  18. data/ios_tests/lib/ios/specs/common/helper.rb +8 -8
  19. data/ios_tests/lib/ios/specs/device/device.rb +5 -5
  20. data/ios_tests/lib/ios/specs/driver.rb +34 -15
  21. data/ios_tests/lib/ios/specs/ios/element/textfield.rb +1 -1
  22. data/ios_tests/readme.md +1 -1
  23. data/ios_tests/upload/sauce_storage.rb +10 -8
  24. data/lib/appium_lib/android/element/button.rb +3 -3
  25. data/lib/appium_lib/android/element/text.rb +1 -1
  26. data/lib/appium_lib/android/element/textfield.rb +1 -1
  27. data/lib/appium_lib/android/helper.rb +12 -12
  28. data/lib/appium_lib/android/mobile_methods.rb +1 -3
  29. data/lib/appium_lib/common/command.rb +55 -0
  30. data/lib/appium_lib/common/helper.rb +7 -7
  31. data/lib/appium_lib/common/patch.rb +21 -8
  32. data/lib/appium_lib/common/search_context.rb +10 -0
  33. data/lib/appium_lib/common/version.rb +2 -2
  34. data/lib/appium_lib/common/wait.rb +8 -14
  35. data/lib/appium_lib/device/device.rb +65 -83
  36. data/lib/appium_lib/device/multi_touch.rb +2 -2
  37. data/lib/appium_lib/device/touch_actions.rb +4 -7
  38. data/lib/appium_lib/driver.rb +66 -38
  39. data/lib/appium_lib/ios/element/alert.rb +4 -4
  40. data/lib/appium_lib/ios/element/textfield.rb +3 -3
  41. data/lib/appium_lib/ios/errors.rb +6 -0
  42. data/lib/appium_lib/ios/helper.rb +25 -25
  43. data/lib/appium_lib/ios/mobile_methods.rb +2 -4
  44. data/readme.md +3 -1
  45. data/release_notes.md +13 -0
  46. metadata +23 -12
@@ -8,10 +8,8 @@ module Appium
8
8
  # find_elements :uiautomation, 'elements()
9
9
  # ```
10
10
  def extended(_mod)
11
- Selenium::WebDriver::SearchContext.class_eval do
12
- Selenium::WebDriver::SearchContext::FINDERS[:uiautomation] = '-ios uiautomation'
13
- Selenium::WebDriver::SearchContext::FINDERS[:predicate] = '-ios predicate string'
14
- end
11
+ ::Appium::Driver::SearchContext::FINDERS[:uiautomation] = '-ios uiautomation'
12
+ ::Appium::Driver::SearchContext::FINDERS[:predicate] = '-ios predicate string'
15
13
  end
16
14
  end # class << self
17
15
  end # module Ios
data/readme.md CHANGED
@@ -16,7 +16,9 @@
16
16
 
17
17
  Helper methods for writing cross platform (iOS, Android) tests in Ruby using Appium. Note that user waits should not exceed 120 seconds if they're going to run on Sauce Labs.
18
18
 
19
- Make sure you're using Appium 1.0.0 or newer and Ruby 1.9.3+ with upgraded rubygems and bundler.
19
+ Make sure you're using Appium 1.0.0 or newer and Ruby 2.2+ with upgraded rubygems and bundler.
20
+
21
+ XCUITest for iOS requires `Appium 1.6.0+`. `appium_lib9.1.0+` requires `selenium-webdriver3.0.2+`.(`appium_lib9.0.0` or less requires `selenium-webdriver2.x`)
20
22
 
21
23
  #### Start appium server
22
24
 
@@ -1,3 +1,16 @@
1
+ #### v9.1.0 2016-12-18
2
+
3
+ - [ba9ec64](https://github.com/appium/ruby_lib/commit/ba9ec64031f242b3065674b1e4f8b236b391f9fa) Release 9.1.0
4
+ - [5e2ed6a](https://github.com/appium/ruby_lib/commit/5e2ed6a984837ff30efa39ebd36e2ee5fc607c89) update readme and template (#418)
5
+ - [e4b4426](https://github.com/appium/ruby_lib/commit/e4b4426a1322a3a552bad93c4d8a54c9592bebc6) Fix rubocop (#417)
6
+ - [da4ed34](https://github.com/appium/ruby_lib/commit/da4ed34296ebffff8ed6d6b970ca5ca5a47ca72f) Require ruby 22 (#416)
7
+ - [858863a](https://github.com/appium/ruby_lib/commit/858863ad88e0d4e32acb109c6bd087a040817fd2) Support over selenium-webdriver3.0.2 (#413)
8
+ - [fbcaa62](https://github.com/appium/ruby_lib/commit/fbcaa62219eca64ebe8892f02d91b0103ee53909) update selenium-webdriver 3.0 and add patches to work with Appium (#383)
9
+ - [19fb322](https://github.com/appium/ruby_lib/commit/19fb322fe0d9fc184fc708d111764e8b38c3c188) update some tips for finding elements (#412)
10
+ - [e485121](https://github.com/appium/ruby_lib/commit/e4851210a2d0202bea3a62aea7f7c33798476466) Release 9 0 0 (#411)
11
+ - [54ff9c4](https://github.com/appium/ruby_lib/commit/54ff9c45df80ce901b718347e79e761f93a4316b) Release 9.0.0
12
+
13
+
1
14
  #### v9.0.0 2016-12-09
2
15
 
3
16
  - [54ff9c4](https://github.com/appium/ruby_lib/commit/54ff9c45df80ce901b718347e79e761f93a4316b) Release 9.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 9.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2016-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.50'
19
+ version: '3.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.2
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '2.50'
29
+ version: '3.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.0.2
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: awesome_print
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -42,14 +48,14 @@ dependencies:
42
48
  name: json
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
53
  version: '1.8'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - "~>"
58
+ - - ">="
53
59
  - !ruby/object:Gem::Version
54
60
  version: '1.8'
55
61
  - !ruby/object:Gem::Dependency
@@ -154,14 +160,14 @@ dependencies:
154
160
  requirements:
155
161
  - - "~>"
156
162
  - !ruby/object:Gem::Version
157
- version: '10.4'
163
+ version: '12.0'
158
164
  type: :development
159
165
  prerelease: false
160
166
  version_requirements: !ruby/object:Gem::Requirement
161
167
  requirements:
162
168
  - - "~>"
163
169
  - !ruby/object:Gem::Version
164
- version: '10.4'
170
+ version: '12.0'
165
171
  - !ruby/object:Gem::Dependency
166
172
  name: yard
167
173
  requirement: !ruby/object:Gem::Requirement
@@ -182,14 +188,14 @@ dependencies:
182
188
  requirements:
183
189
  - - "~>"
184
190
  - !ruby/object:Gem::Version
185
- version: 0.30.1
191
+ version: 0.46.0
186
192
  type: :development
187
193
  prerelease: false
188
194
  version_requirements: !ruby/object:Gem::Requirement
189
195
  requirements:
190
196
  - - "~>"
191
197
  - !ruby/object:Gem::Version
192
- version: 0.30.1
198
+ version: 0.46.0
193
199
  description: Ruby library for Appium.
194
200
  email:
195
201
  - code@bootstraponline.com
@@ -216,6 +222,7 @@ files:
216
222
  - android_tests/lib/android/specs/android/element/textfield.rb
217
223
  - android_tests/lib/android/specs/android/helper.rb
218
224
  - android_tests/lib/android/specs/android/patch.rb
225
+ - android_tests/lib/android/specs/common/command.rb
219
226
  - android_tests/lib/android/specs/common/device.rb
220
227
  - android_tests/lib/android/specs/common/device_touchaction.rb
221
228
  - android_tests/lib/android/specs/common/element/window.rb
@@ -292,6 +299,7 @@ files:
292
299
  - ios_tests/flaky.txt
293
300
  - ios_tests/lib/common.rb
294
301
  - ios_tests/lib/format.rb
302
+ - ios_tests/lib/ios/specs/common/command.rb
295
303
  - ios_tests/lib/ios/specs/common/element/window.rb
296
304
  - ios_tests/lib/ios/specs/common/helper.rb
297
305
  - ios_tests/lib/ios/specs/common/patch.rb
@@ -322,10 +330,12 @@ files:
322
330
  - lib/appium_lib/android/helper.rb
323
331
  - lib/appium_lib/android/mobile_methods.rb
324
332
  - lib/appium_lib/android/patch.rb
333
+ - lib/appium_lib/common/command.rb
325
334
  - lib/appium_lib/common/element/window.rb
326
335
  - lib/appium_lib/common/error.rb
327
336
  - lib/appium_lib/common/helper.rb
328
337
  - lib/appium_lib/common/patch.rb
338
+ - lib/appium_lib/common/search_context.rb
329
339
  - lib/appium_lib/common/version.rb
330
340
  - lib/appium_lib/common/wait.rb
331
341
  - lib/appium_lib/device/device.rb
@@ -337,6 +347,7 @@ files:
337
347
  - lib/appium_lib/ios/element/generic.rb
338
348
  - lib/appium_lib/ios/element/text.rb
339
349
  - lib/appium_lib/ios/element/textfield.rb
350
+ - lib/appium_lib/ios/errors.rb
340
351
  - lib/appium_lib/ios/helper.rb
341
352
  - lib/appium_lib/ios/mobile_methods.rb
342
353
  - lib/appium_lib/ios/patch.rb
@@ -346,7 +357,7 @@ files:
346
357
  - release_notes.md
347
358
  homepage: https://github.com/appium/ruby_lib
348
359
  licenses:
349
- - http://www.apache.org/licenses/LICENSE-2.0.txt
360
+ - Apache
350
361
  metadata: {}
351
362
  post_install_message:
352
363
  rdoc_options: []
@@ -356,7 +367,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
356
367
  requirements:
357
368
  - - ">="
358
369
  - !ruby/object:Gem::Version
359
- version: 1.9.3
370
+ version: '2.2'
360
371
  required_rubygems_version: !ruby/object:Gem::Requirement
361
372
  requirements:
362
373
  - - ">="