eyes_selenium 3.17.10 → 3.17.15
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/lib/applitools/selenium/configuration.rb +7 -1
- data/lib/applitools/selenium/eyes_target_locator.rb +3 -0
- data/lib/applitools/selenium/target.rb +7 -1
- data/lib/applitools/selenium/visual_grid/eyes_connector.rb +5 -0
- data/lib/applitools/selenium/visual_grid/ios_device_info.rb +4 -4
- data/lib/applitools/selenium/visual_grid/render_request.rb +1 -1
- data/lib/applitools/selenium/visual_grid/render_task.rb +1 -0
- data/lib/applitools/selenium/visual_grid/visual_grid_eyes.rb +1 -1
- data/lib/applitools/version.rb +1 -1
- metadata +4 -5
- data/lib/applitools/selenium/visual_grid/ios_screen_orientation.rb +0 -14
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 49c74ca5c19ad9b5e286e9bec0cc977b006d7d5fd424ca1b81155b6d563bbfe6
         | 
| 4 | 
            +
              data.tar.gz: d259f68651959786dac38837ddaf85d73f51ef5936d465fb1013be0a46fc97d2
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2ff9f07e15428986b83690d72ebf82e7c288d1f7ce757429a49b784b3eea6e6b12efdfe57a781f090cc3cdb9c1e16776a40851de5ac6b4eecdd62b1d9d5c05c1
         | 
| 7 | 
            +
              data.tar.gz: bfc741a42fe14a37333dfb71990a56fc0f7a5e539c4fa4037d5b84a6c29e7a438d445fd61764bd2c05c94806e9ba03a6840f1231a077ac03be96e85971a234b1
         | 
| @@ -57,7 +57,13 @@ module Applitools | |
| 57 57 | 
             
                    self
         | 
| 58 58 | 
             
                  end
         | 
| 59 59 |  | 
| 60 | 
            -
                  def add_browsers(browsers)
         | 
| 60 | 
            +
                  def add_browsers(*browsers)
         | 
| 61 | 
            +
                    browsers = case browsers.first
         | 
| 62 | 
            +
                                 when Applitools::Selenium::IRenderBrowserInfo
         | 
| 63 | 
            +
                                   browsers
         | 
| 64 | 
            +
                                 when Array
         | 
| 65 | 
            +
                                   browsers.first
         | 
| 66 | 
            +
                               end
         | 
| 61 67 | 
             
                    browsers.each do |browser|
         | 
| 62 68 | 
             
                      add_browser(browser)
         | 
| 63 69 | 
             
                    end
         | 
| @@ -211,6 +211,9 @@ module Applitools::Selenium | |
| 211 211 | 
             
                      frame(name_or_id: frame_name_or_id)
         | 
| 212 212 | 
             
                    when Applitools::Selenium::Element
         | 
| 213 213 | 
             
                      frame(frame_element: frame_name_or_id)
         | 
| 214 | 
            +
                    when Proc
         | 
| 215 | 
            +
                      frame_element = frame_name_or_id.call(driver)
         | 
| 216 | 
            +
                      frame(frame_element: frame_element)
         | 
| 214 217 | 
             
                    else
         | 
| 215 218 | 
             
                      Applitools::ArgumentGuard.raise_argument_error Applitools::EyesNoSuchFrame.new frame_name_or_id
         | 
| 216 219 | 
             
                    end
         | 
| @@ -242,7 +242,13 @@ module Applitools | |
| 242 242 | 
             
                    self
         | 
| 243 243 | 
             
                  end
         | 
| 244 244 |  | 
| 245 | 
            -
                  def frame( | 
| 245 | 
            +
                  def frame(*args)
         | 
| 246 | 
            +
                    element = case args.first
         | 
| 247 | 
            +
                              when ::Selenium::WebDriver::Element, Applitools::Selenium::Element, String
         | 
| 248 | 
            +
                                args.first
         | 
| 249 | 
            +
                              else
         | 
| 250 | 
            +
                                proc { |d| d.find_element(*args) }
         | 
| 251 | 
            +
                              end
         | 
| 246 252 | 
             
                    frames << frame_or_element if frame_or_element
         | 
| 247 253 | 
             
                    self.frame_or_element = element
         | 
| 248 254 | 
             
                    reset_for_fullscreen
         | 
| @@ -97,6 +97,10 @@ module Applitools | |
| 97 97 | 
             
                    render_status['selectorRegions']
         | 
| 98 98 | 
             
                  end
         | 
| 99 99 |  | 
| 100 | 
            +
                  def visual_viewport
         | 
| 101 | 
            +
                    render_status['visualViewport']
         | 
| 102 | 
            +
                  end
         | 
| 103 | 
            +
             | 
| 100 104 | 
             
                  # def match_level_keys
         | 
| 101 105 | 
             
                  #   %w(match_level exact scale remainder ).map(&:to_sym)
         | 
| 102 106 | 
             
                  # end
         | 
| @@ -146,6 +150,7 @@ module Applitools | |
| 146 150 | 
             
                        o.location = region.location unless region.empty?
         | 
| 147 151 | 
             
                        o.dom_url = dom_url
         | 
| 148 152 | 
             
                        o.screenshot_url = screenshot_url if respond_to?(:screenshot_url) && !screenshot_url.nil?
         | 
| 153 | 
            +
                        o.visual_viewport = visual_viewport unless visual_viewport.nil?
         | 
| 149 154 | 
             
                      end,
         | 
| 150 155 | 
             
                      nil,
         | 
| 151 156 | 
             
                      true
         | 
| @@ -1,12 +1,12 @@ | |
| 1 1 | 
             
            require_relative 'ios_device_name'
         | 
| 2 | 
            -
             | 
| 2 | 
            +
             | 
| 3 3 | 
             
            module Applitools
         | 
| 4 4 | 
             
              module Selenium
         | 
| 5 5 | 
             
                class IosDeviceInfo < IRenderBrowserInfo
         | 
| 6 6 | 
             
                  DEFAULT_CONFIG = proc do
         | 
| 7 7 | 
             
                    {
         | 
| 8 8 | 
             
                        platform: 'ios',
         | 
| 9 | 
            -
                        browser_type:  | 
| 9 | 
            +
                        browser_type: BrowserType::IOS_SAFARI,
         | 
| 10 10 | 
             
                        # size_mode: 'full-page',
         | 
| 11 11 | 
             
                        viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
         | 
| 12 12 | 
             
                    }
         | 
| @@ -24,7 +24,7 @@ module Applitools | |
| 24 24 | 
             
                    super
         | 
| 25 25 | 
             
                    self.ios_device_info = EmulationInfo.new.tap do |ei|
         | 
| 26 26 | 
             
                      ei.device_name = options[:device_name]
         | 
| 27 | 
            -
                      ei.screen_orientation = options[:screen_orientation] || options[:orientation] ||  | 
| 27 | 
            +
                      ei.screen_orientation = options[:screen_orientation] || options[:orientation] || Orientation::PORTRAIT
         | 
| 28 28 | 
             
                    end
         | 
| 29 29 | 
             
                  end
         | 
| 30 30 |  | 
| @@ -40,7 +40,7 @@ module Applitools | |
| 40 40 |  | 
| 41 41 | 
             
                  class EmulationInfo < EmulationBaseInfo
         | 
| 42 42 | 
             
                    enum_field :device_name, IosDeviceName.enum_values
         | 
| 43 | 
            -
                    enum_field :screen_orientation,  | 
| 43 | 
            +
                    enum_field :screen_orientation, Orientation.enum_values
         | 
| 44 44 |  | 
| 45 45 | 
             
                    def json_data
         | 
| 46 46 | 
             
                      {
         | 
| @@ -8,7 +8,7 @@ module Applitools | |
| 8 8 | 
             
                  json_fields :renderId, :webhook, :url, :dom, :resources, :scriptHooks,
         | 
| 9 9 | 
             
                    :selectorsToFindRegionsFor, :sendDom, :agentId
         | 
| 10 10 |  | 
| 11 | 
            -
                  json_fields :renderInfo, :browser, :platform
         | 
| 11 | 
            +
                  json_fields :renderInfo, :browser, :platform, :stitchingService
         | 
| 12 12 |  | 
| 13 13 | 
             
                  def initialize(*args)
         | 
| 14 14 | 
             
                    options = Applitools::Utils.extract_options! args
         | 
| @@ -258,6 +258,7 @@ module Applitools | |
| 258 258 | 
             
                      requests << Applitools::Selenium::RenderRequest.new(
         | 
| 259 259 | 
             
                        webhook: rendering_info['resultsUrl'],
         | 
| 260 260 | 
             
                        url: script_data['url'],
         | 
| 261 | 
            +
                        stitching_service_url: rendering_info['stitchingServiceUrl'],
         | 
| 261 262 | 
             
                        dom: dom,
         | 
| 262 263 | 
             
                        resources: request_resources,
         | 
| 263 264 | 
             
                        render_info: r_info,
         | 
| @@ -63,7 +63,7 @@ module Applitools | |
| 63 63 | 
             
                    config.test_name = options[:test_name] if config.test_name.nil? || config.test_name && config.test_name.empty?
         | 
| 64 64 |  | 
| 65 65 | 
             
                    if config.viewport_size.nil? || config.viewport_size && config.viewport_size.empty?
         | 
| 66 | 
            -
                      config.viewport_size = Applitools::RectangleSize.from_any_argument(options[:viewport_size])
         | 
| 66 | 
            +
                      config.viewport_size = Applitools::RectangleSize.from_any_argument(options[:viewport_size]) if options[:viewport_size]
         | 
| 67 67 | 
             
                    end
         | 
| 68 68 |  | 
| 69 69 | 
             
                    self.driver = Applitools::Selenium::SeleniumEyes.eyes_driver(options.delete(:driver), self)
         | 
    
        data/lib/applitools/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: eyes_selenium
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.17. | 
| 4 | 
            +
              version: 3.17.15
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Applitools Team
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2020- | 
| 11 | 
            +
            date: 2020-07-16 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: eyes_core
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - '='
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 3.17. | 
| 19 | 
            +
                    version: 3.17.15
         | 
| 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: 3.17. | 
| 26 | 
            +
                    version: 3.17.15
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: selenium-webdriver
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -156,7 +156,6 @@ files: | |
| 156 156 | 
             
            - lib/applitools/selenium/visual_grid/i_render_browser_info.rb
         | 
| 157 157 | 
             
            - lib/applitools/selenium/visual_grid/ios_device_info.rb
         | 
| 158 158 | 
             
            - lib/applitools/selenium/visual_grid/ios_device_name.rb
         | 
| 159 | 
            -
            - lib/applitools/selenium/visual_grid/ios_screen_orientation.rb
         | 
| 160 159 | 
             
            - lib/applitools/selenium/visual_grid/render_browser_info.rb
         | 
| 161 160 | 
             
            - lib/applitools/selenium/visual_grid/render_info.rb
         | 
| 162 161 | 
             
            - lib/applitools/selenium/visual_grid/render_request.rb
         |