Class: Puppeteer::RaceLocator

Inherits:
Locator
  • Object
show all
Defined in:
lib/puppeteer/locators.rb

Constant Summary

Constants inherited from Locator

Locator::RETRY_DELAY_SECONDS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Locator

#click, #clone, #copy_options, #fill, #filter, #filter_handle, function_string?, #hover, #map, #map_handle, #on, #once, race, #scroll, #set_ensure_element_is_in_the_viewport, #set_timeout, #set_visibility, #set_wait_for_enabled, #set_wait_for_stable_bounding_box, #timeout, #wait, #wait_handle

Methods included from EventCallbackable

#add_event_listener, #emit_event, #observe_first, #off, #on_event, #remove_event_listener

Constructor Details

#initialize(locators) ⇒ RaceLocator

Returns a new instance of RaceLocator.



721
722
723
724
# File 'lib/puppeteer/locators.rb', line 721

def initialize(locators)
  super()
  @locators = locators
end

Class Method Details

.create(locators) ⇒ Object



716
717
718
719
# File 'lib/puppeteer/locators.rb', line 716

def self.create(locators)
  array = check_locator_array(locators)
  new(array)
end