appium_lib 4.1.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/android_tests/api.apk +0 -0
- data/android_tests/lib/android/specs/android/element/text.rb +2 -2
- data/android_tests/lib/android/specs/android/helper.rb +2 -2
- data/android_tests/lib/android/specs/common/device.rb +10 -28
- data/android_tests/lib/android/specs/common/device_touchaction.rb +29 -0
- data/android_tests/lib/android/specs/common/helper.rb +4 -4
- data/android_tests/lib/android/specs/common/patch.rb +2 -2
- data/android_tests/lib/android/specs/driver.rb +11 -1
- data/android_tests/lib/android/specs/install.rb +7 -6
- data/appium_lib.gemspec +2 -10
- data/contributing.md +23 -0
- data/docs/android_docs.md +274 -217
- data/docs/docs.md +28 -0
- data/docs/ios_docs.md +372 -212
- data/ios_tests/UICatalog.app/Info.plist +0 -0
- data/ios_tests/appium.txt +2 -1
- data/ios_tests/lib/ios/specs/common/helper.rb +12 -21
- data/ios_tests/lib/ios/specs/common/web_context.rb +7 -2
- data/ios_tests/lib/ios/specs/device/device.rb +16 -10
- data/ios_tests/lib/ios/specs/driver.rb +13 -2
- data/ios_tests/lib/ios/specs/ios/element/button.rb +5 -4
- data/ios_tests/lib/ios/specs/ios/element/generic.rb +2 -2
- data/ios_tests/lib/ios/specs/ios/element/text.rb +11 -7
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +9 -9
- data/lib/appium_lib.rb +1 -17
- data/lib/appium_lib/android/helper.rb +55 -5
- data/lib/appium_lib/common/helper.rb +26 -30
- data/lib/appium_lib/common/patch.rb +12 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +83 -12
- data/lib/appium_lib/driver.rb +26 -14
- data/lib/appium_lib/ios/element/button.rb +4 -4
- data/lib/appium_lib/ios/element/generic.rb +4 -4
- data/lib/appium_lib/ios/element/text.rb +4 -4
- data/lib/appium_lib/ios/element/textfield.rb +41 -22
- data/lib/appium_lib/ios/helper.rb +216 -47
- data/lib/appium_lib/ios/patch.rb +0 -19
- data/readme.md +1 -0
- data/release_notes.md +64 -0
- metadata +7 -5
data/lib/appium_lib/ios/patch.rb
CHANGED
@@ -14,27 +14,8 @@ module Appium
|
|
14
14
|
|
15
15
|
# Cross platform way of entering text into a textfield
|
16
16
|
def type text
|
17
|
-
# enter text then tap window to hide the keyboard.
|
18
|
-
=begin
|
19
|
-
Find the top left corner of the keyboard and move up 10 pixels (origin.y - 10)
|
20
|
-
now swipe down until the end of the window - 10 pixels.
|
21
|
-
-10 to ensure we're not going outside the window bounds.
|
22
|
-
|
23
|
-
Swiping inside the keyboard will not dismiss it.
|
24
|
-
|
25
|
-
var startY = au.mainApp().keyboard().rect().origin.y - 10;
|
26
|
-
var endY = au.mainWindow().rect().size.height - 10;
|
27
|
-
au.flickApp(0, startY, 0, endY);
|
28
|
-
|
29
|
-
The above logic has been accepted as part of appium's au.hideKeyboard
|
30
|
-
https://github.com/appium/appium-uiauto/blob/dbeb4eedbdea2104751a0d547ac9b2894e0dc567/uiauto/appium/app.js#L902
|
31
|
-
|
32
|
-
If the 'Done' key exists then that should be pressed to dismiss the keyboard
|
33
|
-
because swiping to dismiss works only if such key doesn't exist.
|
34
|
-
=end
|
35
17
|
# type
|
36
18
|
$driver.execute_script %(au.getElement('#{self.ref}').setValue('#{text}');)
|
37
|
-
$driver.hide_ios_keyboard
|
38
19
|
end # def type
|
39
20
|
end # Selenium::WebDriver::Element.class_eval
|
40
21
|
end # def patch_webdriver_element
|
data/readme.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
- [appium_lib on RubyGems](https://rubygems.org/gems/appium_lib)
|
4
4
|
- [Documentation for appium_lib](https://github.com/appium/ruby_lib/tree/master/docs)
|
5
5
|
- [Appium Ruby Console](https://github.com/appium/ruby_console)
|
6
|
+
- [Bootcamp quick start guide](http://sauceio.com/index.php/tag/appium-bootcamp/) & [Bootcamp example source](https://github.com/tourdedave/appium-getting-started-code-exampes)
|
6
7
|
|
7
8
|
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.
|
8
9
|
|
data/release_notes.md
CHANGED
@@ -1,3 +1,67 @@
|
|
1
|
+
#### v5.0.0 2014-12-23
|
2
|
+
|
3
|
+
- [7c3bc19](https://github.com/appium/ruby_lib/commit/7c3bc19905d0f008192a59dc7f5a938e3701ec8f) Release 5.0.0
|
4
|
+
- [0585d78](https://github.com/appium/ruby_lib/commit/0585d78042ec6e32e00dc349c70fb56179db6b1d) Fix page command on Android
|
5
|
+
- [1f2d10a](https://github.com/appium/ruby_lib/commit/1f2d10afa37b9ca863f94eac9558467b3c2539f4) Test touchactions in new file
|
6
|
+
- [6a638c4](https://github.com/appium/ruby_lib/commit/6a638c4a752f135830cb57f58ec5e373b8461944) Fix webview page inspection
|
7
|
+
- [ddd94b4](https://github.com/appium/ruby_lib/commit/ddd94b498601bfd961dc449f00e584ed6bf753d8) Remove method_missing
|
8
|
+
- [ad10640](https://github.com/appium/ruby_lib/commit/ad10640c58ba1435b32a4d3a8268f66ae4c4b74e) Fix set_immediate_value & update debugging
|
9
|
+
- [7c9e8d0](https://github.com/appium/ruby_lib/commit/7c9e8d0ee33a2d067d4e8c5cb19abf456306851a) Don't try and hide the keyboard after .type
|
10
|
+
- [544e34a](https://github.com/appium/ruby_lib/commit/544e34a7cb8c749947e0f1ac4f2cf02a561a32c3) Fix #291 always set implicit wait to default wait
|
11
|
+
- [d6dacd0](https://github.com/appium/ruby_lib/commit/d6dacd03624d8fce68cfbe7419bc0046072955b8) Clean up button test on iOS
|
12
|
+
- [2967a52](https://github.com/appium/ruby_lib/commit/2967a5212cdabbf972d7000ddc275eab7f0293ef) Update contributing.md
|
13
|
+
- [ad35078](https://github.com/appium/ruby_lib/commit/ad35078239f62483345505da2289aa2820a19333) Update contributing.md
|
14
|
+
- [3943039](https://github.com/appium/ruby_lib/commit/394303988c41631b1715dd4731eedbc92de2a568) Create contributing.md
|
15
|
+
- [20c0c4d](https://github.com/appium/ruby_lib/commit/20c0c4d66ef6f2bab9e7ddaae64e778d510c20bb) Merge pull request #289 from sofaking/master
|
16
|
+
- [0e223ac](https://github.com/appium/ruby_lib/commit/0e223ac4097e8e6f43c2a33177355ddf852562c5) iOS text elements tests are green
|
17
|
+
- [16b33af](https://github.com/appium/ruby_lib/commit/16b33af71bd9aec70f01635f775b9cc82c52ae4d) iOS button elements tests are green
|
18
|
+
- [524d412](https://github.com/appium/ruby_lib/commit/524d412ca2576f2b5d0f284fcb9414960b62b97b) Get back to catalog after web view test
|
19
|
+
- [06c3a75](https://github.com/appium/ruby_lib/commit/06c3a75d9350f603b2c06c73341b55020f5217fb) iOS driver tests are green
|
20
|
+
- [c2e80f0](https://github.com/appium/ruby_lib/commit/c2e80f0351ffb2f71a7702d1d9e6d75b734f53ef) iOS web context test is green
|
21
|
+
- [718e6f5](https://github.com/appium/ruby_lib/commit/718e6f541e594c820ab98b13ecc30ac0ae101774) Generic element tests for iOS are green now
|
22
|
+
- [0651054](https://github.com/appium/ruby_lib/commit/065105471867a87ea364064191defb43107f79d3) ios helper tests are green now
|
23
|
+
- [1356454](https://github.com/appium/ruby_lib/commit/1356454390a001c85e885ae00510167362ca89db) Compatibility with Rubies older than 2.1.0
|
24
|
+
- [99c0b12](https://github.com/appium/ruby_lib/commit/99c0b128da5c6c4e7df2fb1313b7e84f1d6075c9) Add bootcamp guide & example links
|
25
|
+
- [8d2daeb](https://github.com/appium/ruby_lib/commit/8d2daeb9544f6743856552c6828e71bbdecf130f) Fix iOS 8.1 driver test
|
26
|
+
- [c52b099](https://github.com/appium/ruby_lib/commit/c52b09959ffa60784c1b91bf8d7eb9c1a4456725) Update button test
|
27
|
+
- [a069f28](https://github.com/appium/ruby_lib/commit/a069f28854b722e56a34b4796d43c9aed3e833e6) Fix iOS 8.1 test device/device
|
28
|
+
- [4643510](https://github.com/appium/ruby_lib/commit/4643510b8f0ac474340f65ab017b318fd06563a3) Update iOS 8.1 test ios/element/button ✓
|
29
|
+
- [44c930a](https://github.com/appium/ruby_lib/commit/44c930acce8ee9ef55f9de418922aefc0de39933) Merge pull request #285 from sbonebrake/touch_action_sauce_fix
|
30
|
+
- [bbb4cc2](https://github.com/appium/ruby_lib/commit/bbb4cc2c65174d340a38d08f8e48ef55fef8d2ae) Fix for issue #283 'Ruby bindings TouchAction broken on Sauce Labs'
|
31
|
+
- [3cfe864](https://github.com/appium/ruby_lib/commit/3cfe8648827ed6f78fb4d3bb9610f15aebbb38ed) Update tests for new api.apk
|
32
|
+
- [f1e353a](https://github.com/appium/ruby_lib/commit/f1e353a5720a8dd202be7edd1f6f11235c8aad4a) Skip launch_app test
|
33
|
+
- [8000cfa](https://github.com/appium/ruby_lib/commit/8000cfaa5268d70288d0e3f4ae7e2c8386b5076b) Add _app suffix to install/remove/launch
|
34
|
+
- [bc81782](https://github.com/appium/ruby_lib/commit/bc8178235ed2dd97491d1ab528c68c01cd17a0bc) Fix android common/device test
|
35
|
+
- [252df47](https://github.com/appium/ruby_lib/commit/252df470e9f6fb13f855f0ff2c7320b71499dbfd) Reimplement ele_index / tag to avoid xpath
|
36
|
+
- [c5cf51d](https://github.com/appium/ruby_lib/commit/c5cf51d489e2e1d75e5b649f1c7767ec475d268a) Rewrite iOS helpers
|
37
|
+
- [eb22269](https://github.com/appium/ruby_lib/commit/eb22269712354e5ad9e8af1db30954136930c425) Fix iOS textfield tests
|
38
|
+
- [cfad029](https://github.com/appium/ruby_lib/commit/cfad029ea595f12e0328e7600c7d8c5e2abcd431) Rewrite iOS textfield helpers
|
39
|
+
- [98a561b](https://github.com/appium/ruby_lib/commit/98a561beae09017eaa8be4b1d7cdaf5e3d6e1575) Add _elementOrElementsByType for iOS
|
40
|
+
- [0b9aa53](https://github.com/appium/ruby_lib/commit/0b9aa5399ea7e4bd981ec7b65513f15423c07a6a) Regenerate docs
|
41
|
+
- [b7def85](https://github.com/appium/ruby_lib/commit/b7def85c2bd734049121f7f3ca184d0b26e477fe) Fix accessor docs
|
42
|
+
- [b38c783](https://github.com/appium/ruby_lib/commit/b38c7830250067c25834796e4a513fda7e6f3588) Update predicate methods. Fix version ref
|
43
|
+
- [8d3bbc5](https://github.com/appium/ruby_lib/commit/8d3bbc53fb75e7f5fe60ffe7219f8fcb18095262) Restore xpath based textfield helper for iOS
|
44
|
+
- [de61d18](https://github.com/appium/ruby_lib/commit/de61d18c1a0952cf72a34143672f5f46f962b3d2) Fix ios/element/text test
|
45
|
+
- [d90446d](https://github.com/appium/ruby_lib/commit/d90446db37ffdc8db31bdacecc0a4083d91dd6ae) Fix common/helper iOS test
|
46
|
+
- [5042465](https://github.com/appium/ruby_lib/commit/50424651ce90bd9d311cac2c6648dd3908a95a85) Update device attr docs
|
47
|
+
- [e1f041f](https://github.com/appium/ruby_lib/commit/e1f041f96bc9acee6b218db646be078d68a21495) Device Modes
|
48
|
+
- [dfdacdf](https://github.com/appium/ruby_lib/commit/dfdacdfbd3a1a932dcf98ac46a4f0ff8d38356b3) Update docs.md
|
49
|
+
- [a0a74a9](https://github.com/appium/ruby_lib/commit/a0a74a95c2dd842202380946befe496b324a50b8) Add example of automating preinstalled Android app
|
50
|
+
- [4569b0e](https://github.com/appium/ruby_lib/commit/4569b0e80ebafac295f39e42d93204d440320eff) Merge pull request #267 from 0x1mason/2969
|
51
|
+
- [cfe9f29](https://github.com/appium/ruby_lib/commit/cfe9f2982d1dff85591ff7375dd92bf54bbd1e75) Added start_activity function and tests
|
52
|
+
- [af6d44c](https://github.com/appium/ruby_lib/commit/af6d44c6ccd3f32a9553be3c290000421edae92d) Add User-Agent
|
53
|
+
- [29dfcbe](https://github.com/appium/ruby_lib/commit/29dfcbe45f9f70602fa29213a032114d3a751150) Merge pull request #266 from Jonahss/master
|
54
|
+
- [ca42554](https://github.com/appium/ruby_lib/commit/ca425545770af7530c6820be59f211a0d0f50009) added get_settings and update_settings methods
|
55
|
+
- [7cd7431](https://github.com/appium/ruby_lib/commit/7cd74310638df62683f804f6e961cb34832ca728) Merge pull request #252 from jskswamy/master
|
56
|
+
- [3ab6f01](https://github.com/appium/ruby_lib/commit/3ab6f01676e03d263be4bdb9193eef125204cc0d) Update nokogiri
|
57
|
+
- [afcbd6b](https://github.com/appium/ruby_lib/commit/afcbd6b6ed868c189b383235a5a81762b0258a08) Update gemspec
|
58
|
+
- [5f0c1c5](https://github.com/appium/ruby_lib/commit/5f0c1c569b2eb6014982cd9c1c246215dc3375ab) Fix textfield index
|
59
|
+
- [d4517b8](https://github.com/appium/ruby_lib/commit/d4517b878763523068f99b89b38a1ea3b0a98c4b) Update comment
|
60
|
+
- [b71c9d4](https://github.com/appium/ruby_lib/commit/b71c9d4dfe5d00e368b7fe56a88a6accfeb7485e) Fix get_source
|
61
|
+
- [c352e68](https://github.com/appium/ruby_lib/commit/c352e6855e9d503199d86640d232dce7bda1734b) Fix uiautomator's invalid xml #243
|
62
|
+
- [c2b5dcb](https://github.com/appium/ruby_lib/commit/c2b5dcbf733575ffa846432b21fa97575415aab3) Use predicates for ios/element/textfield
|
63
|
+
|
64
|
+
|
1
65
|
#### v4.1.0 2014-07-21
|
2
66
|
|
3
67
|
- [a13158f](https://github.com/appium/ruby_lib/commit/a13158fb926212d84f26120c3bc5355c8cd34baf) Release 4.1.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:
|
4
|
+
version: 5.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: 2014-
|
11
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -96,14 +96,14 @@ dependencies:
|
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 1.6.1
|
99
|
+
version: 1.6.3.1
|
100
100
|
type: :runtime
|
101
101
|
prerelease: false
|
102
102
|
version_requirements: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: 1.6.1
|
106
|
+
version: 1.6.3.1
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: posix-spawn
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- android_tests/lib/android/specs/android/helper.rb
|
232
232
|
- android_tests/lib/android/specs/android/patch.rb
|
233
233
|
- android_tests/lib/android/specs/common/device.rb
|
234
|
+
- android_tests/lib/android/specs/common/device_touchaction.rb
|
234
235
|
- android_tests/lib/android/specs/common/element/window.rb
|
235
236
|
- android_tests/lib/android/specs/common/helper.rb
|
236
237
|
- android_tests/lib/android/specs/common/patch.rb
|
@@ -242,6 +243,7 @@ files:
|
|
242
243
|
- android_tests/lib/run.rb
|
243
244
|
- android_tests/readme.md
|
244
245
|
- appium_lib.gemspec
|
246
|
+
- contributing.md
|
245
247
|
- docs/android_docs.md
|
246
248
|
- docs/api_19_webview.md
|
247
249
|
- docs/docs.md
|
@@ -373,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
373
375
|
version: '0'
|
374
376
|
requirements: []
|
375
377
|
rubyforge_project:
|
376
|
-
rubygems_version: 2.
|
378
|
+
rubygems_version: 2.4.3
|
377
379
|
signing_key:
|
378
380
|
specification_version: 4
|
379
381
|
summary: Ruby library for Appium
|