Class: Puppeteer::FilteredLocator

Inherits:
DelegatedLocator show all
Defined in:
lib/puppeteer/locators.rb

Constant Summary

Constants inherited from Locator

Locator::RETRY_DELAY_SECONDS

Instance Method Summary collapse

Methods inherited from DelegatedLocator

#set_ensure_element_is_in_the_viewport, #set_timeout, #set_visibility, #set_wait_for_enabled, #set_wait_for_stable_bounding_box

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(base, predicate) ⇒ FilteredLocator

Returns a new instance of FilteredLocator.



615
616
617
618
# File 'lib/puppeteer/locators.rb', line 615

def initialize(base, predicate)
  super(base)
  @predicate = predicate
end