Class: Selenium::DevTools::V129::FileSystem
- Inherits:
-
Object
- Object
- Selenium::DevTools::V129::FileSystem
- Defined in:
- lib/selenium/devtools/v129/file_system.rb
Instance Method Summary collapse
- #get_directory(bucket_file_system_locator:) ⇒ Object
-
#initialize(devtools) ⇒ FileSystem
constructor
A new instance of FileSystem.
- #on(event, &block) ⇒ Object
Constructor Details
#initialize(devtools) ⇒ FileSystem
Returns a new instance of FileSystem.
26 27 28 |
# File 'lib/selenium/devtools/v129/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/v129/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/v129/file_system.rb', line 30 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["FileSystem.#{event}"] << block end |