appium_capybara 1.10.0 → 2.0.0.rc1
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/README.md +8 -0
- data/appium_capybara.gemspec +4 -4
- data/example/appium.txt +1 -1
- data/example/spec/capybara_init.rb +1 -1
- data/example/spec/ios_example_spec.rb +13 -0
- data/lib/appium_capybara/driver/appium/driver.rb +10 -1
- data/lib/appium_capybara/version.rb +2 -2
- metadata +15 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7528768838f6b857e2bc39b42c2e7d61afe2d85b313d63be7048c5369f98b3d6
|
4
|
+
data.tar.gz: 3d08e2d1e77b428ced8fb9a67002da0739b67a22c0bf8a78572b2e002cdca2f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0a41a64e1ec954aeff72f72ef3b3029ebb821629e5f744c104d5566fc7632d679a747a5e7657b8ca254e506662c839f2896777e6e484153418f0f709a96b5a
|
7
|
+
data.tar.gz: 992182fcba658013c140f85b9c2e359601b57c437972c03a6290e18bc9688231858c63000e2591aa030551712d9e4010096bad5ef468ea32e0511f31401894fe
|
data/README.md
CHANGED
@@ -67,3 +67,11 @@ capy_driver.appium_driver.hide_keyboard
|
|
67
67
|
|
68
68
|
Make sure to run `thor bump` or manually modify version.rb before publishing. RubyGems will not allow the same
|
69
69
|
version to be published twice. After the version is bumped, run `thor publish`
|
70
|
+
|
71
|
+
|
72
|
+
## Changelogs
|
73
|
+
|
74
|
+
- v2.0.0
|
75
|
+
- Bump base appium_lib version to v12
|
76
|
+
- Bump base capybara version to over 3.36
|
77
|
+
- Support Ruby 2.6+
|
data/appium_capybara.gemspec
CHANGED
@@ -7,7 +7,7 @@ class Gem::Specification
|
|
7
7
|
end
|
8
8
|
|
9
9
|
Gem::Specification.new do |s|
|
10
|
-
s.required_ruby_version = '>= 2.
|
10
|
+
s.required_ruby_version = '>= 2.6'
|
11
11
|
|
12
12
|
s.name = 'appium_capybara'
|
13
13
|
s.version = Appium::Capybara::VERSION
|
@@ -19,11 +19,11 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.homepage = 'https://github.com/appium/appium_capybara'
|
20
20
|
s.require_paths = ['lib']
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'appium_lib', '
|
23
|
-
s.add_runtime_dependency 'capybara', '~> 3.
|
22
|
+
s.add_runtime_dependency 'appium_lib', '12.0.0.rc4'
|
23
|
+
s.add_runtime_dependency 'capybara', '~> 3.36'
|
24
24
|
|
25
25
|
s.add_development_dependency 'appium_thor', '~> 1.1.6'
|
26
|
-
|
26
|
+
|
27
27
|
|
28
28
|
s.files = s.remove_zip_files(`git ls-files`.split("\n"))
|
29
29
|
end
|
data/example/appium.txt
CHANGED
@@ -12,7 +12,7 @@ Capybara.register_driver(:appium) do |app|
|
|
12
12
|
all_options = caps.merge(appium_lib: { server_url: url }, global_driver: false)
|
13
13
|
puts all_options.inspect
|
14
14
|
|
15
|
-
Appium::Capybara::Driver.new app, all_options
|
15
|
+
Appium::Capybara::Driver.new app, **all_options
|
16
16
|
end
|
17
17
|
|
18
18
|
Capybara.default_driver = :appium
|
@@ -20,5 +20,18 @@ describe 'UICatalog smoke test' do
|
|
20
20
|
|
21
21
|
e = Capybara.current_session.find(:xpath, '//XCUIElementTypeNavigationBar')
|
22
22
|
expect(e.find(:class, 'XCUIElementTypeButton').text).to eq('UICatalog')
|
23
|
+
|
24
|
+
Capybara.current_session.driver.appium_driver.back
|
25
|
+
|
26
|
+
capy_driver.swipe({start_x: 100, start_y: 500, end_x: 100, end_y: 200})
|
27
|
+
Capybara.current_session.driver.appium_driver.find_element(:name, 'Text Fields').click
|
28
|
+
|
29
|
+
e = capy_driver.find_custom(:predicate, 'value == "Placeholder text"').first
|
30
|
+
e.send_keys [:shift, :end]
|
31
|
+
|
32
|
+
e = Capybara.current_session.find(:xpath, '//XCUIElementTypeTextField[@value=""]')
|
33
|
+
e.send_keys [:shift, :end]
|
34
|
+
|
35
|
+
expect(e.text).to eq("")
|
23
36
|
end
|
24
37
|
end
|
@@ -86,7 +86,16 @@ module Appium::Capybara
|
|
86
86
|
end_y = opts.fetch :end_y, 0
|
87
87
|
duration = opts.fetch :duration, 200
|
88
88
|
|
89
|
-
|
89
|
+
action_builder = browser.action
|
90
|
+
input = action_builder.pointer_inputs[0]
|
91
|
+
action_builder
|
92
|
+
.move_to_location(start_x, start_y)
|
93
|
+
.pointer_down(:left)
|
94
|
+
.pause(input, duration / 1000)
|
95
|
+
.move_to_location(end_x, end_y)
|
96
|
+
.pause(input, 1)
|
97
|
+
.release
|
98
|
+
.perform
|
90
99
|
end
|
91
100
|
|
92
101
|
# new
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Appium
|
2
2
|
module Capybara
|
3
|
-
VERSION = '
|
4
|
-
DATE = '
|
3
|
+
VERSION = '2.0.0.rc1'.freeze unless defined? ::Appium::Capybara::VERSION
|
4
|
+
DATE = '2021-11-01'.freeze unless defined? ::Appium::Capybara::DATE
|
5
5
|
end
|
6
6
|
end
|
metadata
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scott.bonebrake@gmail.com
|
8
8
|
- code@bootstraponline.com
|
9
9
|
- jason.s.carr@gmail.com
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: appium_lib
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 12.0.0.rc4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 12.0.0.rc4
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: capybara
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '3.
|
35
|
+
version: '3.36'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '3.
|
42
|
+
version: '3.36'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: appium_thor
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,20 +54,6 @@ dependencies:
|
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 1.1.6
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: pry
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '0'
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
71
57
|
description: Enables appium support in Capybara.
|
72
58
|
email:
|
73
59
|
- scott.bonebrake@gmail.com
|
@@ -103,7 +89,7 @@ homepage: https://github.com/appium/appium_capybara
|
|
103
89
|
licenses:
|
104
90
|
- http://www.apache.org/licenses/LICENSE-2.0.txt
|
105
91
|
metadata: {}
|
106
|
-
post_install_message:
|
92
|
+
post_install_message:
|
107
93
|
rdoc_options: []
|
108
94
|
require_paths:
|
109
95
|
- lib
|
@@ -111,15 +97,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
97
|
requirements:
|
112
98
|
- - ">="
|
113
99
|
- !ruby/object:Gem::Version
|
114
|
-
version: '2.
|
100
|
+
version: '2.6'
|
115
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
102
|
requirements:
|
117
|
-
- - "
|
103
|
+
- - ">"
|
118
104
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
105
|
+
version: 1.3.1
|
120
106
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
122
|
-
signing_key:
|
107
|
+
rubygems_version: 3.2.15
|
108
|
+
signing_key:
|
123
109
|
specification_version: 4
|
124
110
|
summary: Enables appium support in Capybara
|
125
111
|
test_files: []
|