Class: Applitools::Selenium::DomCapture::DomParts

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/selenium/dom_capture/dom_capture.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ DomParts

Returns a new instance of DomParts.



156
157
158
159
# File 'lib/applitools/selenium/dom_capture/dom_capture.rb', line 156

def initialize(*args)
  self.dom_part_collectors = args
  @index = 0
end

Instance Attribute Details

#dom_part_collectorsObject

Returns the value of attribute dom_part_collectors.



155
156
157
# File 'lib/applitools/selenium/dom_capture/dom_capture.rb', line 155

def dom_part_collectors
  @dom_part_collectors
end

Instance Method Details

#collectorsObject



161
162
163
164
165
166
167
168
# File 'lib/applitools/selenium/dom_capture/dom_capture.rb', line 161

def collectors
  @collectors ||= Enumerator.new(dom_part_collectors.length) do |y|
    loop do
      y << dom_part_collectors[@index]
      @index += 1
    end
  end
end