def process_capabilities
      caps = @options.delete(:desired_capabilities)

      if caps
        msg = 'You can pass values directly into Watir::Browser opt without needing to use :desired_capabilities'
        Watir.logger.warn msg,
                          ids: [:use_capabilities]
        @selenium_opts.merge!(@options)
      else
        caps = Selenium::WebDriver::Remote::Capabilities.send @browser, @options
      end

      @selenium_opts[:desired_capabilities] = caps
    end
def process_capabilities
      caps = @options.delete(:desired_capabilities)

      if caps
        msg = 'You can pass values directly into Watir::Browser opt without needing to use :desired_capabilities'
        Watir.logger.warn msg,
                          ids: [:use_capabilities]
        @selenium_opts.merge!(@options)
      else
        caps = Selenium::WebDriver::Remote::Capabilities.send @browser, @options
      end

      @selenium_opts[:desired_capabilities] = caps
    end
rubocop:enable Metrics/AbcSize
 rubocop:enable Metrics/MethodLength
 rubocop:enable Metrics/PerceivedComplexity:
 rubocop:enable Metrics/CyclomaticComplexity::