appium_lib 10.1.0 → 10.2.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.
@@ -703,9 +703,6 @@ module Appium
703
703
  # Return ImageElement if current view has a partial image
704
704
  #
705
705
  # @param [String] png_img_path A path to a partial image you'd like to find
706
- # @param [Flood] match_threshold At what normalized threshold to reject
707
- # @param [Bool] visualize Makes the endpoint to return an image, which contains the visualized result of
708
- # the corresponding picture matching operation. This option is disabled by default.
709
706
  #
710
707
  # @return [::Appium::Core::ImageElement]
711
708
  # @raise [::Appium::Core::Error::NoSuchElementError|::Appium::Core::Error::CoreError] No such element
@@ -714,17 +711,13 @@ module Appium
714
711
  #
715
712
  # @driver.find_element_by_image './test/functional/data/test_element_image.png'
716
713
  #
717
- DEFAULT_MATCH_THRESHOLD = 0.5
718
- def find_element_by_image(png_img_path, match_threshold: DEFAULT_MATCH_THRESHOLD, visualize: false)
719
- @driver.find_element_by_image(png_img_path, match_threshold: match_threshold, visualize: visualize)
714
+ def find_element_by_image(png_img_path)
715
+ @driver.find_element_by_image(png_img_path)
720
716
  end
721
717
 
722
718
  # Return ImageElement if current view has partial images
723
719
  #
724
720
  # @param [[String]] png_img_paths Paths to a partial image you'd like to find
725
- # @param [Flood] match_threshold At what normalized threshold to reject
726
- # @param [Bool] visualize Makes the endpoint to return an image, which contains the visualized result of
727
- # the corresponding picture matching operation. This option is disabled by default.
728
721
  #
729
722
  # @return [[::Appium::Core::ImageElement]]
730
723
  # @return [::Appium::Core::Error::CoreError]
@@ -733,8 +726,8 @@ module Appium
733
726
  #
734
727
  # @driver.find_elements_by_image ['./test/functional/data/test_element_image.png']
735
728
  #
736
- def find_elements_by_image(png_img_paths, match_threshold: DEFAULT_MATCH_THRESHOLD, visualize: false)
737
- @driver.find_elements_by_image(png_img_paths, match_threshold: match_threshold, visualize: visualize)
729
+ def find_elements_by_image(png_img_paths)
730
+ @driver.find_elements_by_image(png_img_paths)
738
731
  end
739
732
 
740
733
  # Calls @driver.set_location
@@ -1,5 +1,5 @@
1
1
  module Appium
2
2
  # Version and Date are defined on the 'Appium' module, not 'Appium::Common'
3
- VERSION = '10.1.0'.freeze unless defined? ::Appium::VERSION
4
- DATE = '2019-02-21'.freeze unless defined? ::Appium::DATE
3
+ VERSION = '10.2.0'.freeze unless defined? ::Appium::VERSION
4
+ DATE = '2019-03-01'.freeze unless defined? ::Appium::DATE
5
5
  end
data/release_notes.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### v10.2.0 2019-03-01
2
+
3
+ - [f1b8a2e](https://github.com/appium/ruby_lib/commit/f1b8a2e32fc935508e13431570fd7de4a90b6bd7) Release 10.2.0
4
+ - [dbac05e](https://github.com/appium/ruby_lib/commit/dbac05e58dc25c1e682a4183dff4ead7202a857c) Fix find element by image (#854)
5
+
6
+
1
7
  #### v10.1.0 2019-02-21
2
8
 
3
9
  - [4b43cf7](https://github.com/appium/ruby_lib/commit/4b43cf7b240a7b4cab7b22198ed4dd1307611545) Release 10.1.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.0
4
+ version: 10.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-21 00:00:00.000000000 Z
12
+ date: 2019-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appium_lib_core