appium_capybara 1.8.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appium_capybara/driver/appium/driver.rb +11 -0
- data/lib/appium_capybara/version.rb +2 -2
- data/release_notes.md +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e580b26f96de413ba5f884a3415e64ee394e737804b60a7c0474db7c8df399e
|
|
4
|
+
data.tar.gz: b6d98a242aab223809ace04acba7f53628c0047dd9fe04717994e8480b5ef4cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b28ad6664372da0ee2019f076270cdea5cf0a0e7f92a78547d38ad0a1a823ede280313b1e39fcb32320475b50b4023e244761457a77d1e7953720f896866c45
|
|
7
|
+
data.tar.gz: b2c3c92b1e1ae17ba9f692b2c61d0b4bde9f8b35a00b6387c01b8ce4ba4911c6baf6cfadb1e89265a3f8c84b935039d94d51cee06d305a51534e40e5bf5fc1bc
|
|
@@ -78,6 +78,17 @@ module Appium::Capybara
|
|
|
78
78
|
browser.execute_script('mobile: scroll', direction: 'down')
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
+
# new
|
|
82
|
+
def swipe(opts)
|
|
83
|
+
start_x = opts.fetch :start_x, 0
|
|
84
|
+
start_y = opts.fetch :start_y, 0
|
|
85
|
+
end_x = opts.fetch :end_x, 0
|
|
86
|
+
end_y = opts.fetch :end_y, 0
|
|
87
|
+
duration = opts.fetch :duration, 200
|
|
88
|
+
|
|
89
|
+
Appium::TouchAction.new(browser).swipe(start_x: start_x, start_y: start_y, end_x: end_x, end_y: end_y, duration: duration).perform
|
|
90
|
+
end
|
|
91
|
+
|
|
81
92
|
# new
|
|
82
93
|
# Use :landscape or :portrait
|
|
83
94
|
def rotate(opts)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Appium
|
|
2
2
|
module Capybara
|
|
3
|
-
VERSION = '1.
|
|
4
|
-
DATE = '2019-
|
|
3
|
+
VERSION = '1.9.0'.freeze unless defined? ::Appium::Capybara::VERSION
|
|
4
|
+
DATE = '2019-07-11'.freeze unless defined? ::Appium::Capybara::DATE
|
|
5
5
|
end
|
|
6
6
|
end
|
data/release_notes.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
#### v1.9.0 2019-07-11
|
|
2
|
+
|
|
3
|
+
- [8c42306](https://github.com/appium/appium_capybara/commit/8c423067b4347ab64521f298737e76d1164f9929) Release 1.9.0
|
|
4
|
+
- [ad6df40](https://github.com/appium/appium_capybara/commit/ad6df40144c372dcac538f8f43054bf521f99695) feat: Added swipe feature for android and ios (#50)
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
#### v1.8.1 2019-06-23
|
|
2
8
|
|
|
3
9
|
- [805b248](https://github.com/appium/appium_capybara/commit/805b24839f414c936e408739a871be9df3620fbf) Release 1.8.1
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appium_capybara
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- scott.bonebrake@gmail.com
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2019-
|
|
13
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: appium_lib
|