appium_capybara 3.1.0 → 3.1.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d511030e467a8e2a0bf1449736350310aed097724c650650e24d8f356a3e089
|
|
4
|
+
data.tar.gz: 86d9dd4fae49eee996d551e0eedf8f4a185ecc8a006196f010e003fb30851136
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abb720c6c3aae89ac0830a108560158b15f164adc725c800e876c38aab9cf1d26541b017bec83dca38ef211f1fdfea6fc29913f1ef7f6b91bbb64db45ea57d32
|
|
7
|
+
data.tar.gz: c2b6f0559dbece29e715f3c1cdfa3a269ce62bebd94dc19af5d7135b023319ceac40811c59ffcfd78323f2385cccef63a678cb1ae16a9d137e817306d560b272
|
|
@@ -47,7 +47,7 @@ jobs:
|
|
|
47
47
|
appium driver install xcuitest
|
|
48
48
|
- name: run Appium background
|
|
49
49
|
run: |
|
|
50
|
-
nohup appium --
|
|
50
|
+
nohup appium --log-timestamp --log-no-colors > appium.out 2>&1 &
|
|
51
51
|
|
|
52
52
|
- name: Set up Ruby
|
|
53
53
|
uses: ruby/setup-ruby@v1
|
|
@@ -55,9 +55,9 @@ jobs:
|
|
|
55
55
|
ruby-version: 3.2
|
|
56
56
|
- name: Run example
|
|
57
57
|
run: |
|
|
58
|
-
cd example
|
|
59
58
|
bundle install
|
|
60
59
|
bundle exec rspec spec/ios_example_spec.rb
|
|
60
|
+
working-directory: example
|
|
61
61
|
|
|
62
62
|
- name: Upload appium.out
|
|
63
63
|
if: ${{ always() }}
|
|
@@ -14,7 +14,7 @@ Capybara.register_driver(:appium) do |app|
|
|
|
14
14
|
'appium:wdaLaunchTimeout' => 600_000,
|
|
15
15
|
'appium:simulatorStartupTimeout' => 600_000
|
|
16
16
|
},
|
|
17
|
-
appium_lib: { server_url: 'http://localhost:4723
|
|
17
|
+
appium_lib: { server_url: 'http://localhost:4723' },
|
|
18
18
|
global_driver: false
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
class Capybara::Queries::SelectorQuery < Capybara::Queries::BaseQuery
|
|
2
|
-
|
|
3
|
-
# @api private
|
|
4
|
-
def resolve_for(node, exact = nil)
|
|
5
|
-
applied_filters.clear
|
|
6
|
-
@resolved_node = node
|
|
7
|
-
@resolved_count += 1
|
|
8
|
-
node.synchronize do
|
|
9
|
-
children = find_nodes_by_selector_format(node, exact).map(&method(:to_element))
|
|
10
|
-
Capybara::Result.new(children, self)
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
2
|
private
|
|
15
3
|
|
|
16
4
|
# https://github.com/teamcapybara/capybara/blob/a7ebe1216f8d65f2e96c170437a732777353a81d/lib/capybara/queries/selector_query.rb#L227
|
|
@@ -21,13 +9,14 @@ class Capybara::Queries::SelectorQuery < Capybara::Queries::BaseQuery
|
|
|
21
9
|
hints[:styles] = options[:style] if use_default_style_filter?
|
|
22
10
|
hints[:position] = true if use_spatial_filter?
|
|
23
11
|
|
|
24
|
-
|
|
12
|
+
case selector_format
|
|
13
|
+
when :css
|
|
25
14
|
if node.method(:find_css).arity != 1
|
|
26
15
|
node.find_css(css, **hints)
|
|
27
16
|
else
|
|
28
17
|
node.find_css(css)
|
|
29
18
|
end
|
|
30
|
-
|
|
19
|
+
when :xpath
|
|
31
20
|
if node.method(:find_xpath).arity != 1
|
|
32
21
|
node.find_xpath(xpath(exact), **hints)
|
|
33
22
|
else
|
data/release_notes.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
#### v3.1.1 2024-07-20
|
|
2
|
+
|
|
3
|
+
- [b282393](https://github.com/appium/appium_capybara/commit/b28239336dbd2ba0c2ad5b5089b4c9666485b589) Release 3.1.1
|
|
4
|
+
- [34f8aa0](https://github.com/appium/appium_capybara/commit/34f8aa0c97f99ace1ab8ee291096ac1fafa9154f) chore: tune method definitions and test code (#75)
|
|
5
|
+
- [8b397c9](https://github.com/appium/appium_capybara/commit/8b397c904651c5c424b186f0bae247ee9907d2d8) docs: tweak the release note
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
#### v3.1.0 2024-07-20
|
|
2
9
|
|
|
3
10
|
- [20bb106](https://github.com/appium/appium_capybara/commit/20bb10687dbfe4ad634699948af0628793009cec) Release 3.1.0
|