Class: Selenium::DevTools::V128::FileSystem

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/devtools/v128/file_system.rb

Instance Method Summary collapse

Constructor Details

#initialize(devtools) ⇒ FileSystem

Returns a new instance of FileSystem.



26
27
28
# File 'lib/selenium/devtools/v128/file_system.rb', line 26

def initialize(devtools)
  @devtools = devtools
end

Instance Method Details

#get_directory(bucket_file_system_locator:) ⇒ Object



35
36
37
38
# File 'lib/selenium/devtools/v128/file_system.rb', line 35

def get_directory(bucket_file_system_locator:)
  @devtools.send_cmd('FileSystem.getDirectory',
                     bucketFileSystemLocator: bucket_file_system_locator)
end

#on(event, &block) ⇒ Object



30
31
32
33
# File 'lib/selenium/devtools/v128/file_system.rb', line 30

def on(event, &block)
  event = EVENTS[event] if event.is_a?(Symbol)
  @devtools.callbacks["FileSystem.#{event}"] << block
end