@@ -804,7 +804,7 @@ def compare_images(mode: :matchFeatures, first_image:, second_image:, options: n
804
804
# You can handle settings for the comparision following below.
805
805
# @see https://github.com/appium/appium-base-driver/blob/master/lib/basedriver/device-settings.js#L6
806
806
#
807
- # @param [String] png_img_path A path to a partial image you'd like to find
807
+ # @param [String] img_path A path to a partial image you'd like to find
808
808
#
809
809
# @return [::Selenium::WebDriver::Element]
810
810
#
@@ -814,8 +814,8 @@ def compare_images(mode: :matchFeatures, first_image:, second_image:, options: n
814
814
# autoUpdateImageElementPosition: true })
815
815
# e = @@driver.find_element_by_image './test/functional/data/test_element_image.png'
816
816
#
817
- def find_element_by_image ( png_img_path )
818
- template = Base64 . encode64 File . read png_img_path
817
+ def find_element_by_image ( img_path )
818
+ template = Base64 . encode64 File . read img_path
819
819
find_element :image , template
820
820
end
821
821
@@ -825,7 +825,7 @@ def find_element_by_image(png_img_path)
825
825
# You can handle settings for the comparision following below.
826
826
# @see https://github.com/appium/appium-base-driver/blob/master/lib/basedriver/device-settings.js#L6
827
827
#
828
- # @param [String] png_img_path A path to a partial image you'd like to find
828
+ # @param [String] img_path A path to a partial image you'd like to find
829
829
#
830
830
# @return [::Selenium::WebDriver::Element]
831
831
#
@@ -836,8 +836,8 @@ def find_element_by_image(png_img_path)
836
836
# e = @@driver.find_elements_by_image ['./test/functional/data/test_element_image.png']
837
837
# e == [] # if the `e` is empty
838
838
#
839
- def find_elements_by_image ( png_img_path )
840
- template = Base64 . encode64 File . read png_img_path
839
+ def find_elements_by_image ( img_path )
840
+ template = Base64 . encode64 File . read img_path
841
841
find_elements :image , template
842
842
end
843
843
end # class Driver
0 commit comments