Class: Puppeteer::QueryHandlerManager::Result

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

Instance Method Summary collapse

Constructor Details

#initialize(query_handler:, selector:) ⇒ Result

Returns a new instance of Result.



20
21
22
23
# File 'lib/puppeteer/query_handler_manager.rb', line 20

def initialize(query_handler:, selector:)
  @query_handler = query_handler
  @selector = selector
end

Instance Method Details

#query_all(element_handle) ⇒ Object



33
34
35
# File 'lib/puppeteer/query_handler_manager.rb', line 33

def query_all(element_handle)
  @query_handler.query_all(element_handle, @selector)
end

#query_all_array(element_handle) ⇒ Object



37
38
39
# File 'lib/puppeteer/query_handler_manager.rb', line 37

def query_all_array(element_handle)
  @query_handler.query_all_array(element_handle, @selector)
end

#query_one(element_handle) ⇒ Object



25
26
27
# File 'lib/puppeteer/query_handler_manager.rb', line 25

def query_one(element_handle)
  @query_handler.query_one(element_handle, @selector)
end

#wait_for(dom_world, visible:, hidden:, timeout:) ⇒ Object



29
30
31
# File 'lib/puppeteer/query_handler_manager.rb', line 29

def wait_for(dom_world, visible:, hidden:, timeout:)
  @query_handler.wait_for(dom_world, @selector, visible: visible, hidden: hidden, timeout: timeout)
end