appium_flutter_finder 0.2.1 → 0.3.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/README.md +2 -1
- data/lib/appium_flutter_finder/version.rb +1 -1
- data/lib/appium_flutter_finder.rb +4 -4
- 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: b984346a462b9d110ac47d7180c4d7acf913ab828e88b436d02e633af493efbf
|
|
4
|
+
data.tar.gz: 518826877b83afeebf3862286b658fcccbb5141c5d63c8477189ed137c8d8cab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f115465181a10a7a5dc2b075fc7880ef1e6437c41db25cd62d8b6d850ea31545a5a2261205edd7def9b2c0e25026fee7a2b608a807ba87fd71b7581010694292
|
|
7
|
+
data.tar.gz: 70c32e67ac6c3397b2c9f7843f5cce2c71c96352235dcbb3fd4e95fcce8ca188531b129a9f2a5bcd9ca6c0ae083d62434c3cbab192783f1c70df6cc8274d0e06
|
data/README.md
CHANGED
|
@@ -43,7 +43,8 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
43
43
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
44
44
|
|
|
45
45
|
## Changelog
|
|
46
|
-
|
|
46
|
+
- 0.3
|
|
47
|
+
- Add `first_match_only` option in `by_ancestor` and `by_descendant`
|
|
47
48
|
- 0.2.1
|
|
48
49
|
- Fix `by_ancestor` and `by_descendant`
|
|
49
50
|
- https://github.com/truongsinh/appium-flutter-driver/pull/165#issuecomment-877928553
|
|
@@ -17,7 +17,7 @@ module Appium
|
|
|
17
17
|
|
|
18
18
|
# Get find element context for flutter driver
|
|
19
19
|
module Finder
|
|
20
|
-
def by_ancestor(serialized_finder:, matching:, match_root: false)
|
|
20
|
+
def by_ancestor(serialized_finder:, matching:, match_root: false, first_match_only: false)
|
|
21
21
|
by_ancestor_or_descendant(
|
|
22
22
|
type: 'Ancestor',
|
|
23
23
|
serialized_finder: serialized_finder,
|
|
@@ -26,7 +26,7 @@ module Appium
|
|
|
26
26
|
)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
def by_descendant(serialized_finder:, matching:, match_root: false)
|
|
29
|
+
def by_descendant(serialized_finder:, matching:, match_root: false, first_match_only: false)
|
|
30
30
|
by_ancestor_or_descendant(
|
|
31
31
|
type: 'Descendant',
|
|
32
32
|
serialized_finder: serialized_finder,
|
|
@@ -85,8 +85,8 @@ module Appium
|
|
|
85
85
|
Base64.strict_encode64(hash.to_json)
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
def by_ancestor_or_descendant(type:, serialized_finder:, matching:, match_root: false)
|
|
89
|
-
param = { finderType: type, matchRoot: match_root }
|
|
88
|
+
def by_ancestor_or_descendant(type:, serialized_finder:, matching:, match_root: false, first_match_only: false)
|
|
89
|
+
param = { finderType: type, matchRoot: match_root, firstMatchOnly: first_match_only}
|
|
90
90
|
|
|
91
91
|
finder = begin
|
|
92
92
|
JSON.parse(Base64.decode64(serialized_finder))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appium_flutter_finder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kazuaki Matsuo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: appium_lib_core
|