appium_flutter_finder 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d1a8681fc6aa2c9fdebebf1d0e20a9a166431f9353411deff49051d6eae0412
4
- data.tar.gz: cc6b1513d45e5dc373d26265b642ec139638852d4acf53ada24aceb523febad6
3
+ metadata.gz: b984346a462b9d110ac47d7180c4d7acf913ab828e88b436d02e633af493efbf
4
+ data.tar.gz: 518826877b83afeebf3862286b658fcccbb5141c5d63c8477189ed137c8d8cab
5
5
  SHA512:
6
- metadata.gz: a46190890f702340e9a736395749809f8873a6105f1efb91dfd697c3f7a8b427fcf824441041ca355eea91a88a6bbb8234e49a86a407c122a6eefd178aad1dec
7
- data.tar.gz: 04400aeacaed1dbee2ade2f6be630eb297f04a8de89795764a7937fb6d5209a63b047245d1ae0c0490d07c0e79f11b2e54b99d2acbc1baca18bf95410cb28a17
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
@@ -1,7 +1,7 @@
1
1
  module Appium
2
2
  module Flutter
3
3
  module Finder
4
- VERSION = '0.2.1'.freeze
4
+ VERSION = '0.3.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -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.2.1
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-07-12 00:00:00.000000000 Z
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