appium_flutter_finder 0.2.1 → 0.4.1

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: 582ba7b3b833255f543bba50226cf06961376c342ec9d984c5a0507008dd97be
4
+ data.tar.gz: '0940c7ec6285dcd39010a5497375c453577b57f07388c9657fe51231c375f224'
5
5
  SHA512:
6
- metadata.gz: a46190890f702340e9a736395749809f8873a6105f1efb91dfd697c3f7a8b427fcf824441041ca355eea91a88a6bbb8234e49a86a407c122a6eefd178aad1dec
7
- data.tar.gz: 04400aeacaed1dbee2ade2f6be630eb297f04a8de89795764a7937fb6d5209a63b047245d1ae0c0490d07c0e79f11b2e54b99d2acbc1baca18bf95410cb28a17
6
+ metadata.gz: 1a154ed2ab40cd77c6784b1d1a5d86f5750efa9c8054087ad8988208afbf2e06b75c2f01a4b24f45f4be26d69c2d9a9eb54380dad50159b6ea8eedba41b35777
7
+ data.tar.gz: b078b823b702aa98f6e89a38af8c18a635f36e489ae238f7c44171473e5819b4e612959637ab3edcf4b2efc9d37dcd93598bb447b0355b068c096dbf00703833
data/README.md CHANGED
@@ -43,7 +43,12 @@ 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.4.1
47
+ - Add `attr_reader` for `Appium::Flutter::Element#id`
48
+ - 0.4.0
49
+ - Bump appium_lib_core version to v5+
50
+ - 0.3, 0.3.1
51
+ - Add `first_match_only` option in `by_ancestor` and `by_descendant`
47
52
  - 0.2.1
48
53
  - Fix `by_ancestor` and `by_descendant`
49
54
  - https://github.com/truongsinh/appium-flutter-driver/pull/165#issuecomment-877928553
@@ -52,4 +57,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
52
57
 
53
58
  ## Contributing
54
59
 
55
- Bug reports and pull requests are welcome on GitHub at https://github.com/truongsinh/appium-flutter-driver/tree/master/finder/ruby .
60
+ Bug reports and pull requests are welcome on GitHub at https://github.com/truongsinh/appium-flutter-driver/tree/main/finder/ruby .
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'appium_flutter_finder/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.required_ruby_version = '>= 2.4'
6
+ spec.required_ruby_version = '>= 2.6'
7
7
 
8
8
  spec.name = 'appium_flutter_finder'
9
9
  spec.version = Appium::Flutter::Finder::VERSION
@@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
- spec.add_runtime_dependency 'appium_lib_core', '~> 4.0'
26
+ spec.add_runtime_dependency 'appium_lib_core', '~> 5.0'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '>= 1.17'
29
29
  spec.add_development_dependency 'minitest', '~> 5.0'
30
- spec.add_development_dependency 'rake', '~> 10.0'
30
+ spec.add_development_dependency 'rake', '~> 13.0'
31
31
  end
@@ -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.4.1'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -9,6 +9,8 @@ module Appium
9
9
 
10
10
  # Handles flutter elements as Appium Elements
11
11
  class Element < ::Selenium::WebDriver::Element
12
+ attr_reader :id
13
+
12
14
  def initialize(driver, finder:)
13
15
  @bridge = driver.bridge
14
16
  @id = finder
@@ -17,21 +19,23 @@ module Appium
17
19
 
18
20
  # Get find element context for flutter driver
19
21
  module Finder
20
- def by_ancestor(serialized_finder:, matching:, match_root: false)
22
+ def by_ancestor(serialized_finder:, matching:, match_root: false, first_match_only: false)
21
23
  by_ancestor_or_descendant(
22
24
  type: 'Ancestor',
23
25
  serialized_finder: serialized_finder,
24
26
  matching: matching,
25
- match_root: match_root
27
+ match_root: match_root,
28
+ first_match_only: first_match_only
26
29
  )
27
30
  end
28
31
 
29
- def by_descendant(serialized_finder:, matching:, match_root: false)
32
+ def by_descendant(serialized_finder:, matching:, match_root: false, first_match_only: false)
30
33
  by_ancestor_or_descendant(
31
34
  type: 'Descendant',
32
35
  serialized_finder: serialized_finder,
33
36
  matching: matching,
34
- match_root: match_root
37
+ match_root: match_root,
38
+ first_match_only: first_match_only
35
39
  )
36
40
  end
37
41
 
@@ -85,8 +89,8 @@ module Appium
85
89
  Base64.strict_encode64(hash.to_json)
86
90
  end
87
91
 
88
- def by_ancestor_or_descendant(type:, serialized_finder:, matching:, match_root: false)
89
- param = { finderType: type, matchRoot: match_root }
92
+ def by_ancestor_or_descendant(type:, serialized_finder:, matching:, match_root: false, first_match_only: false)
93
+ param = { finderType: type, matchRoot: match_root, firstMatchOnly: first_match_only}
90
94
 
91
95
  finder = begin
92
96
  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.4.1
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: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13.0'
69
69
  description: Finder for appium-flutter-driver
70
70
  email:
71
71
  - fly.49.89.over@gmail.com
@@ -92,14 +92,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: '2.4'
95
+ version: '2.6'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.2.15
102
+ rubygems_version: 3.3.3
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Finder for appium-flutter-driver