appium_lib_core 1.4.2 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/appium_lib_core/device/touch_actions.rb +23 -17
- data/lib/appium_lib_core/version.rb +2 -2
- data/release_notes.md +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e972900301fbf194438a65c383c0456337b2aa13
|
4
|
+
data.tar.gz: 2ce95031c23912360f8542d88749ff6cef7db15d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1c6ac5e752578f5012a269eb7656457bb5c4939b94cd473502266c28ba9c1e701cc696efb02aeac38637992b8013c29463f0b4a00146005410dc90b9400f94c
|
7
|
+
data.tar.gz: 997526c2682ead602ec3b6f95b578237d2ff81f7cd34fac500fa20e7cf45bf95b4eafd6fd1ba9796428a641b902ba48e582233753dbabd635ef432b46b1949e8
|
data/CHANGELOG.md
CHANGED
@@ -5,10 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
### Enhancements
|
6
6
|
|
7
7
|
### Bug fixes
|
8
|
-
- Revert `delegate_from_appium_driver` for `ruby_lib` compatibility
|
9
8
|
|
10
9
|
### Deprecations
|
11
10
|
|
11
|
+
## [1.5.0] - 2018-04-25
|
12
|
+
### Enhancements
|
13
|
+
- [internal] Remove hot fix for XCUITest action
|
14
|
+
|
15
|
+
### Bug fixes
|
16
|
+
|
17
|
+
### Deprecations
|
18
|
+
- Changed the name of arguments
|
19
|
+
- `swipe(start_x:, start_y:, end_x:, end_y:)` instead of `swipe(start_x:, start_y:, offset_x:, offset_y:)`
|
20
|
+
|
12
21
|
## [1.4.2] - 2018-04-22
|
13
22
|
### Enhancements
|
14
23
|
|
@@ -22,6 +31,7 @@ All notable changes to this project will be documented in this file.
|
|
22
31
|
- add base image comparison
|
23
32
|
- `match_images_features`, `find_image_occurrence`, `get_images_similarity`, `compare_images`
|
24
33
|
- [internal] No longer have dependency for Selenium's wait
|
34
|
+
- Raise `::Appium::Core::Wait::TimeoutError` instead of `::Selenium::WebDriver::Error::TimeOutError`
|
25
35
|
- [internal] Separate mjsonwp commands module and w3c commands module from one command module
|
26
36
|
|
27
37
|
### Bug fixes
|
@@ -34,8 +34,8 @@ module Appium
|
|
34
34
|
# `move_to`'s `x` and `y` have two case. One is working as coordinate, the other is working as offset.
|
35
35
|
#
|
36
36
|
# @param opts [Hash] Options
|
37
|
-
# @option opts [integer] :x x co-ordinate to move to if element isn't set. Works as an
|
38
|
-
# @option opts [integer] :y y co-ordinate to move to if element isn't set. Works as an
|
37
|
+
# @option opts [integer] :x x co-ordinate to move to if element isn't set. Works as an absolute if x is set with Element.
|
38
|
+
# @option opts [integer] :y y co-ordinate to move to if element isn't set. Works as an absolute if y is set with Element.
|
39
39
|
# @option opts [WebDriver::Element] Element to scope this move within.
|
40
40
|
def move_to(opts)
|
41
41
|
opts = args_with_ele_ref(opts)
|
@@ -133,24 +133,30 @@ module Appium
|
|
133
133
|
# @param opts [Hash] Options
|
134
134
|
# @option opts [int] :start_x Where to start swiping, on the x axis. Default 0.
|
135
135
|
# @option opts [int] :start_y Where to start swiping, on the y axis. Default 0.
|
136
|
-
# @option opts [int] :
|
137
|
-
# @option opts [int] :
|
136
|
+
# @option opts [int] :end_x Move to the end, on the x axis. Default 0.
|
137
|
+
# @option opts [int] :end_y Move to the end, on the y axis. Default 0.
|
138
138
|
# @option opts [int] :duration How long the actual swipe takes to complete in milliseconds. Default 200.
|
139
|
-
def swipe(opts
|
140
|
-
start_x
|
141
|
-
start_y
|
142
|
-
|
143
|
-
|
139
|
+
def swipe(opts)
|
140
|
+
start_x = opts.fetch :start_x, 0
|
141
|
+
start_y = opts.fetch :start_y, 0
|
142
|
+
end_x = opts.fetch :end_x, 0
|
143
|
+
end_y = opts.fetch :end_y, 0
|
144
|
+
|
145
|
+
if opts[:offset_x]
|
146
|
+
::Appium::Logger.warn('[DEPRECATED] :offset_x was renamed to :end_x to indicate as an absolute point.')
|
147
|
+
end_x = opts.fetch :offset_x, 0
|
148
|
+
end
|
149
|
+
if opts[:offset_y]
|
150
|
+
::Appium::Logger.warn('[DEPRECATED] :offset_y was renamed to :end_y to indicate as an absolute point.')
|
151
|
+
end_y = opts.fetch :offset_y, 0
|
152
|
+
end
|
153
|
+
|
144
154
|
duration = opts.fetch :duration, 200
|
145
155
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
press x: start_x, y: start_y
|
151
|
-
wait(duration) if duration
|
152
|
-
move_to x: offset_x, y: offset_y
|
153
|
-
end
|
156
|
+
press x: start_x, y: start_y
|
157
|
+
wait(duration) if duration
|
158
|
+
move_to x: end_x, y: end_y
|
159
|
+
|
154
160
|
release
|
155
161
|
|
156
162
|
self
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Core
|
3
|
-
VERSION = '1.
|
4
|
-
DATE = '2018-04-
|
3
|
+
VERSION = '1.5.0'.freeze unless defined? ::Appium::Core::VERSION
|
4
|
+
DATE = '2018-04-25'.freeze unless defined? ::Appium::Core::DATE
|
5
5
|
end
|
6
6
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v1.5.0 2018-04-25
|
2
|
+
|
3
|
+
- [b37ab24](https://github.com/appium/ruby_lib_core/commit/b37ab249c01a9d9f22a35e8d08e79a6d6b53e3f2) Release 1.5.0
|
4
|
+
- [0e2df5c](https://github.com/appium/ruby_lib_core/commit/0e2df5ce86d89fdeb9010a8af3b47da9eed3b269) Remove hotfix xcuitest pinch zoom (#81)
|
5
|
+
- [7209568](https://github.com/appium/ruby_lib_core/commit/7209568040ad94b47aebfac132f47f4be451d112) Update CHANGELOG.md
|
6
|
+
|
7
|
+
|
1
8
|
#### v1.4.2 2018-04-22
|
2
9
|
|
3
10
|
- [9a29196](https://github.com/appium/ruby_lib_core/commit/9a29196c1dde66a828b72bef0b3f28b929c7bf1b) Release 1.4.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuaki MATSUO
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|