appium_lib 8.2.1 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/android_tests/lib/android/specs/common/device_touchaction.rb +2 -2
  3. data/appium_lib.gemspec +2 -2
  4. data/docs/android_docs.md +245 -212
  5. data/docs/docs.md +17 -15
  6. data/docs/index_paths.md +2 -2
  7. data/docs/ios_docs.md +422 -240
  8. data/docs/ios_xcuitest.md +25 -0
  9. data/ios_tests/Gemfile +2 -0
  10. data/ios_tests/appium.txt +2 -1
  11. data/ios_tests/lib/common.rb +98 -4
  12. data/ios_tests/lib/ios/specs/common/helper.rb +24 -28
  13. data/ios_tests/lib/ios/specs/common/patch.rb +1 -1
  14. data/ios_tests/lib/ios/specs/device/device.rb +17 -11
  15. data/ios_tests/lib/ios/specs/device/multi_touch.rb +22 -1
  16. data/ios_tests/lib/ios/specs/device/touch_actions.rb +14 -5
  17. data/ios_tests/lib/ios/specs/driver.rb +13 -9
  18. data/ios_tests/lib/ios/specs/ios/element/alert.rb +12 -8
  19. data/ios_tests/lib/ios/specs/ios/element/button.rb +6 -3
  20. data/ios_tests/lib/ios/specs/ios/element/text.rb +5 -3
  21. data/ios_tests/lib/ios/specs/ios/element/textfield.rb +12 -8
  22. data/ios_tests/lib/ios/specs/ios/helper.rb +9 -3
  23. data/ios_tests/lib/ios/specs/ios/patch.rb +9 -1
  24. data/ios_tests/readme.md +3 -2
  25. data/lib/appium_lib/common/error.rb +5 -0
  26. data/lib/appium_lib/common/version.rb +2 -2
  27. data/lib/appium_lib/device/device.rb +7 -1
  28. data/lib/appium_lib/device/multi_touch.rb +27 -9
  29. data/lib/appium_lib/device/touch_actions.rb +12 -5
  30. data/lib/appium_lib/driver.rb +29 -1
  31. data/lib/appium_lib/ios/element/button.rb +50 -24
  32. data/lib/appium_lib/ios/element/generic.rb +20 -4
  33. data/lib/appium_lib/ios/element/text.rb +48 -24
  34. data/lib/appium_lib/ios/element/textfield.rb +80 -40
  35. data/lib/appium_lib/ios/helper.rb +107 -33
  36. data/lib/appium_lib/ios/mobile_methods.rb +1 -0
  37. data/lib/appium_lib/ios/patch.rb +5 -2
  38. data/readme.md +1 -0
  39. data/release_notes.md +10 -0
  40. metadata +16 -2
@@ -10,6 +10,7 @@ module Appium
10
10
  def extended(_mod)
11
11
  Selenium::WebDriver::SearchContext.class_eval do
12
12
  Selenium::WebDriver::SearchContext::FINDERS[:uiautomation] = '-ios uiautomation'
13
+ Selenium::WebDriver::SearchContext::FINDERS[:predicate] = '-ios predicate string'
13
14
  end
14
15
  end
15
16
  end # class << self
@@ -14,8 +14,11 @@ module Appium
14
14
 
15
15
  # Cross platform way of entering text into a textfield
16
16
  def type(text)
17
- # type
18
- $driver.execute_script %(au.getElement('#{ref}').setValue('#{text}');)
17
+ if $driver.automation_name_is_xcuitest?
18
+ send_keys text
19
+ else
20
+ $driver.execute_script %(au.getElement('#{ref}').setValue('#{text}');)
21
+ end
19
22
  end # def type
20
23
  end # Selenium::WebDriver::Element.class_eval
21
24
  end # def patch_webdriver_element
data/readme.md CHANGED
@@ -54,6 +54,7 @@ gem install --no-rdoc --no-ri appium_lib
54
54
  - [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
55
55
  - [Ruby Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
56
56
  - [Ruby iOS methods](https://github.com/appium/ruby_lib/blob/master/docs/ios_docs.md)
57
+ - [Tips for XCUITest for iOS](https://github.com/appium/ruby_lib/blob/master/docs/ios_xcuitest.md)
57
58
  - [Appium Server docs](https://github.com/appium/appium/tree/master/docs)
58
59
 
59
60
  #### Logging
@@ -1,3 +1,13 @@
1
+ #### v9.0.0 2016-12-09
2
+
3
+ - [54ff9c4](https://github.com/appium/ruby_lib/commit/54ff9c45df80ce901b718347e79e761f93a4316b) Release 9.0.0
4
+ - [930d4c7](https://github.com/appium/ruby_lib/commit/930d4c701865cfab603c5030bd92d6049bb8b5ad) add documentations (#410)
5
+ - [e765d1f](https://github.com/appium/ruby_lib/commit/e765d1f437a842c942e3efde0a33e15327571ced) Fix tests for xcuitest strategy (#408)
6
+ - [cfabca1](https://github.com/appium/ruby_lib/commit/cfabca11933247e7fba6946d3128cf58035bd820) Feature/xcuitest (#388)
7
+ - [75dd133](https://github.com/appium/ruby_lib/commit/75dd133d3279233312926aff66ec026a7c2e8766) Release 8 2 1 (#407)
8
+ - [ad91ee4](https://github.com/appium/ruby_lib/commit/ad91ee47a96bf7a19b6f784dc760ac70b8788e5a) Release 8.2.1
9
+
10
+
1
11
  #### v8.2.1 2016-11-29
2
12
 
3
13
  - [ad91ee4](https://github.com/appium/ruby_lib/commit/ad91ee47a96bf7a19b6f784dc760ac70b8788e5a) Release 8.2.1
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: 8.2.1
4
+ version: 9.0.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-11-29 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -71,6 +71,9 @@ dependencies:
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.6'
76
+ - - ">="
74
77
  - !ruby/object:Gem::Version
75
78
  version: 1.6.6
76
79
  type: :runtime
@@ -78,6 +81,9 @@ dependencies:
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
83
  - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '1.6'
86
+ - - ">="
81
87
  - !ruby/object:Gem::Version
82
88
  version: 1.6.6
83
89
  - !ruby/object:Gem::Dependency
@@ -113,6 +119,9 @@ dependencies:
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
121
  - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '5.3'
124
+ - - ">="
116
125
  - !ruby/object:Gem::Version
117
126
  version: 5.3.4
118
127
  type: :development
@@ -120,6 +129,9 @@ dependencies:
120
129
  version_requirements: !ruby/object:Gem::Requirement
121
130
  requirements:
122
131
  - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '5.3'
134
+ - - ">="
123
135
  - !ruby/object:Gem::Version
124
136
  version: 5.3.4
125
137
  - !ruby/object:Gem::Dependency
@@ -224,6 +236,7 @@ files:
224
236
  - docs/docs.md
225
237
  - docs/index_paths.md
226
238
  - docs/ios_docs.md
239
+ - docs/ios_xcuitest.md
227
240
  - docs/migration.md
228
241
  - docs_gen/docs_from_js.md
229
242
  - docs_gen/make_docs.rb
@@ -310,6 +323,7 @@ files:
310
323
  - lib/appium_lib/android/mobile_methods.rb
311
324
  - lib/appium_lib/android/patch.rb
312
325
  - lib/appium_lib/common/element/window.rb
326
+ - lib/appium_lib/common/error.rb
313
327
  - lib/appium_lib/common/helper.rb
314
328
  - lib/appium_lib/common/patch.rb
315
329
  - lib/appium_lib/common/version.rb