class Selenium::DevTools::V93::ApplicationCache
Constants
- EVENTS
Public Class Methods
new(devtools)
click to toggle source
# File lib/selenium/devtools/v93/application_cache.rb, line 30 def initialize(devtools) @devtools = devtools end
Public Instance Methods
enable()
click to toggle source
# File lib/selenium/devtools/v93/application_cache.rb, line 39 def enable @devtools.send_cmd('ApplicationCache.enable') end
get_application_cache_for_frame(frame_id:)
click to toggle source
# File lib/selenium/devtools/v93/application_cache.rb, line 43 def get_application_cache_for_frame(frame_id:) @devtools.send_cmd('ApplicationCache.getApplicationCacheForFrame', frameId: frame_id) end
get_frames_with_manifests()
click to toggle source
# File lib/selenium/devtools/v93/application_cache.rb, line 48 def get_frames_with_manifests @devtools.send_cmd('ApplicationCache.getFramesWithManifests') end
get_manifest_for_frame(frame_id:)
click to toggle source
# File lib/selenium/devtools/v93/application_cache.rb, line 52 def get_manifest_for_frame(frame_id:) @devtools.send_cmd('ApplicationCache.getManifestForFrame', frameId: frame_id) end
on(event, &block)
click to toggle source
# File lib/selenium/devtools/v93/application_cache.rb, line 34 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["ApplicationCache.#{event}"] << block end