appium_capybara 2.0.0 → 2.0.1
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/example/readme.md +1 -1
- data/example/spec/home_page.rb +2 -0
- data/example/spec/ios_example_spec.rb +3 -0
- data/example/spec/sheets_section.rb +5 -0
- data/example/spec/spec_helper.rb +2 -0
- data/lib/appium_capybara/ext/element_ext.rb +10 -0
- data/lib/appium_capybara/version.rb +2 -2
- data/lib/appium_capybara.rb +1 -0
- data/release_notes.md +17 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c01c74dae5c0bee9ff0affce27ffb6d71229271a597468ae02cb2a2977925d7
|
|
4
|
+
data.tar.gz: 9d30bfd646196682b2b4f4fe153ee2b1f58de02ede7f052615d3b63d3f2bdd97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d320348656da67f051a6237c56383ec65d16a78e89b099177cfd6e66063ad92118d433abcca42fe97705536730d8691780f509665fb75248b13b2ce394381f6
|
|
7
|
+
data.tar.gz: 982ff5267fd0c1def16dd311d11c89407bfe65f97d13ac5734324349c5fb13c6e65957547120e01123f08bfe0622acfb1410778409d9ec61870b0a55fc85e343
|
data/example/readme.md
CHANGED
data/example/spec/home_page.rb
CHANGED
|
@@ -5,6 +5,9 @@ describe 'UICatalog smoke test' do
|
|
|
5
5
|
home_page = Pages::Home.new
|
|
6
6
|
expect(home_page.navigation_bar.first).to be_truthy
|
|
7
7
|
|
|
8
|
+
# Use Capybara::Node::Element element
|
|
9
|
+
expect(home_page.action_sheets_section.has_buttons?).to be_falsey
|
|
10
|
+
|
|
8
11
|
expect(Capybara.current_driver).to be :appium
|
|
9
12
|
|
|
10
13
|
capy_driver = Capybara.current_session.driver
|
data/example/spec/spec_helper.rb
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
class Capybara::Node::Element
|
|
2
|
+
# Override
|
|
3
|
+
def inspect
|
|
4
|
+
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
|
|
5
|
+
rescue ::Capybara::NotSupportedByDriverError, ::Selenium::WebDriver::Error::WebDriverError
|
|
6
|
+
# Native context does not have the 'path' strategy, so it could raise an exception.
|
|
7
|
+
# Then, the method can call tag_name instead.
|
|
8
|
+
%(#<#{self.class} tag="#{tag_name}">)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Appium
|
|
2
2
|
module Capybara
|
|
3
|
-
VERSION = '2.0.
|
|
4
|
-
DATE = '
|
|
3
|
+
VERSION = '2.0.1'.freeze unless defined? ::Appium::Capybara::VERSION
|
|
4
|
+
DATE = '2022-11-12'.freeze unless defined? ::Appium::Capybara::DATE
|
|
5
5
|
end
|
|
6
6
|
end
|
data/lib/appium_capybara.rb
CHANGED
|
@@ -4,6 +4,7 @@ require_relative 'appium_capybara/driver/appium/driver'
|
|
|
4
4
|
require_relative 'appium_capybara/driver/appium/node'
|
|
5
5
|
|
|
6
6
|
require_relative 'appium_capybara/ext/base_ext'
|
|
7
|
+
require_relative 'appium_capybara/ext/element_ext'
|
|
7
8
|
require_relative 'appium_capybara/ext/selector_query_ext'
|
|
8
9
|
require_relative 'appium_capybara/ext/selector_ext'
|
|
9
10
|
|
data/release_notes.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
#### v2.0.1 2022-11-12
|
|
2
|
+
|
|
3
|
+
- [5704c96](https://github.com/appium/appium_capybara/commit/5704c968c4f205898020d4496f65e971ac808c11) Release 2.0.1
|
|
4
|
+
- [4072558](https://github.com/appium/appium_capybara/commit/4072558be376c69cb4e7b84e21967c0957403a56) fix: add webdrivererror handler instead of calling just name (#66)
|
|
5
|
+
- [37f10b8](https://github.com/appium/appium_capybara/commit/37f10b8da484625de9d4c0377dd503eae13e89bd) update release_notes (#64)
|
|
6
|
+
- [7303687](https://github.com/appium/appium_capybara/commit/7303687fd93b109f112e1ac4bcd37cdcacb8be30) fix Capybara::Node::Element.inspect (#62)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
#### v2.0.0 2021-11-11
|
|
10
|
+
|
|
11
|
+
- [503a8d5](https://github.com/appium/appium_capybara/commit/503a8d5bfbc058257a4352fb68a841b1c4628f62) chore: bump version
|
|
12
|
+
- [2db4ab7](https://github.com/appium/appium_capybara/commit/2db4ab76b1af74cfa9967ec218aac3b627f0f4e2) chore: tweak appium_lib version
|
|
13
|
+
- [2569793](https://github.com/appium/appium_capybara/commit/2569793b713eeeb8a677bdd8269c26dd3cb0bc5c) chore: bump version to rc2
|
|
14
|
+
- [90b5b57](https://github.com/appium/appium_capybara/commit/90b5b57139ce60c7971b285019a3b26aa5f70547) chore: bump appium_lib to rc5
|
|
15
|
+
- [0d30dde](https://github.com/appium/appium_capybara/commit/0d30dde8a8548f7c933270958b5cf3ca5978ba6a) chore: bump base ruby_lib ver to 12 rc, bump version (#60)
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
#### v1.10.0 2019-11-23
|
|
2
19
|
|
|
3
20
|
- [2a0a739](https://github.com/appium/appium_capybara/commit/2a0a739685b571ab8d54655f924ed078c45d3bbe) Release 1.10.0
|
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: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
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:
|
|
13
|
+
date: 2022-11-12 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: appium_lib
|
|
@@ -76,11 +76,13 @@ files:
|
|
|
76
76
|
- example/spec/capybara_init.rb
|
|
77
77
|
- example/spec/home_page.rb
|
|
78
78
|
- example/spec/ios_example_spec.rb
|
|
79
|
+
- example/spec/sheets_section.rb
|
|
79
80
|
- example/spec/spec_helper.rb
|
|
80
81
|
- lib/appium_capybara.rb
|
|
81
82
|
- lib/appium_capybara/driver/appium/driver.rb
|
|
82
83
|
- lib/appium_capybara/driver/appium/node.rb
|
|
83
84
|
- lib/appium_capybara/ext/base_ext.rb
|
|
85
|
+
- lib/appium_capybara/ext/element_ext.rb
|
|
84
86
|
- lib/appium_capybara/ext/selector_ext.rb
|
|
85
87
|
- lib/appium_capybara/ext/selector_query_ext.rb
|
|
86
88
|
- lib/appium_capybara/version.rb
|
|
@@ -104,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
106
|
- !ruby/object:Gem::Version
|
|
105
107
|
version: '0'
|
|
106
108
|
requirements: []
|
|
107
|
-
rubygems_version: 3.
|
|
109
|
+
rubygems_version: 3.3.3
|
|
108
110
|
signing_key:
|
|
109
111
|
specification_version: 4
|
|
110
112
|
summary: Enables appium support in Capybara
|