appium_capybara 2.0.0.rc2 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 947bfdf7c0237c37cce5004a3173afbd77ed90e71f51006570d480e9f69dab4c
4
- data.tar.gz: 251188882b88ddb6dc53efbe7fc8c9bafaf983464b4625f401ebdb9cc8875a16
3
+ metadata.gz: 2c01c74dae5c0bee9ff0affce27ffb6d71229271a597468ae02cb2a2977925d7
4
+ data.tar.gz: 9d30bfd646196682b2b4f4fe153ee2b1f58de02ede7f052615d3b63d3f2bdd97
5
5
  SHA512:
6
- metadata.gz: 016614a0eace8a1b7b811c42d038c088ca86327473253f2fe6b42554748291587e7b196373676f39c63fbaf7f51979ff2f6913e56284330589e0c930f5bc89a6
7
- data.tar.gz: 43a4f79e36c663bdb0aa975bbd5553fe3a184fb97b6af275366b4359e943931f1dcd9f47d8b8731cba088c6dbf5f64349527f9b9de3062d43130fd1da2a229ac
6
+ metadata.gz: 7d320348656da67f051a6237c56383ec65d16a78e89b099177cfd6e66063ad92118d433abcca42fe97705536730d8691780f509665fb75248b13b2ce394381f6
7
+ data.tar.gz: 982ff5267fd0c1def16dd311d11c89407bfe65f97d13ac5734324349c5fb13c6e65957547120e01123f08bfe0622acfb1410778409d9ec61870b0a55fc85e343
@@ -19,7 +19,7 @@ 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', '12.0.0.rc5'
22
+ s.add_runtime_dependency 'appium_lib', '~> 12.0.0'
23
23
  s.add_runtime_dependency 'capybara', '~> 3.36'
24
24
 
25
25
  s.add_development_dependency 'appium_thor', '~> 1.1.6'
data/example/readme.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ```
4
4
  cd example
5
5
  bundle update
6
- rspec
6
+ bundle exec rspec spec/ios_example_spec.rb
7
7
  ```
8
8
 
9
9
  # Use with pry
@@ -3,5 +3,7 @@ module Pages
3
3
  # UIANavigationBar
4
4
  # name: UICatalog
5
5
  elements :navigation_bar, :accessibility_id, 'UICatalog'
6
+
7
+ section :action_sheets_section, Sections::Sheets, :name, 'Action Sheets'
6
8
  end
7
9
  end
@@ -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
@@ -0,0 +1,5 @@
1
+ module Sections
2
+ class Sheets < SitePrism::Section
3
+ elements :buttons, :class, 'XCUIElementTypeButton'
4
+ end
5
+ end
@@ -1,5 +1,7 @@
1
1
  require_relative 'capybara_init'
2
2
 
3
+ # sections
4
+ require_relative 'sheets_section'
3
5
  # pages
4
6
  require_relative 'home_page'
5
7
 
@@ -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.0.rc2'.freeze unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2021-11-05'.freeze unless defined? ::Appium::Capybara::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
@@ -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.0.rc2
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - scott.bonebrake@gmail.com
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-11-05 00:00:00.000000000 Z
13
+ date: 2022-11-12 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: 12.0.0.rc5
21
+ version: 12.0.0
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: 12.0.0.rc5
28
+ version: 12.0.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: capybara
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -100,11 +102,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
102
  version: '2.6'
101
103
  required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  requirements:
103
- - - ">"
105
+ - - ">="
104
106
  - !ruby/object:Gem::Version
105
- version: 1.3.1
107
+ version: '0'
106
108
  requirements: []
107
- rubygems_version: 3.2.15
109
+ rubygems_version: 3.3.3
108
110
  signing_key:
109
111
  specification_version: 4
110
112
  summary: Enables appium support in Capybara