Class: Puppeteer::DelegatedLocator
Constant Summary
Constants inherited
from Locator
Locator::RETRY_DELAY_SECONDS
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, #timeout, #wait, #wait_handle
#add_event_listener, #emit_event, #observe_first, #off, #on_event, #remove_event_listener
Constructor Details
Returns a new instance of DelegatedLocator.
565
566
567
568
569
|
# File 'lib/puppeteer/locators.rb', line 565
def initialize(delegate)
super()
@delegate = delegate
copy_options(@delegate)
end
|
Instance Method Details
#set_ensure_element_is_in_the_viewport(value) ⇒ Object
593
594
595
596
597
|
# File 'lib/puppeteer/locators.rb', line 593
def set_ensure_element_is_in_the_viewport(value)
locator = super
locator.instance_variable_set(:@delegate, @delegate.set_ensure_element_is_in_the_viewport(value))
locator
end
|
#set_timeout(timeout) ⇒ Object
575
576
577
578
579
|
# File 'lib/puppeteer/locators.rb', line 575
def set_timeout(timeout)
locator = super
locator.instance_variable_set(:@delegate, @delegate.set_timeout(timeout))
locator
end
|
#set_visibility(visibility) ⇒ Object
581
582
583
584
585
|
# File 'lib/puppeteer/locators.rb', line 581
def set_visibility(visibility)
locator = super
locator.instance_variable_set(:@delegate, @delegate.set_visibility(visibility))
locator
end
|
#set_wait_for_enabled(value) ⇒ Object
587
588
589
590
591
|
# File 'lib/puppeteer/locators.rb', line 587
def set_wait_for_enabled(value)
locator = super
locator.instance_variable_set(:@delegate, @delegate.set_wait_for_enabled(value))
locator
end
|
#set_wait_for_stable_bounding_box(value) ⇒ Object
599
600
601
602
603
|
# File 'lib/puppeteer/locators.rb', line 599
def set_wait_for_stable_bounding_box(value)
locator = super
locator.instance_variable_set(:@delegate, @delegate.set_wait_for_stable_bounding_box(value))
locator
end
|