Class: Selenium::DevTools::V85::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/devtools/v85/schema.rb

Instance Method Summary collapse

Constructor Details

#initialize(devtools) ⇒ Schema

Returns a new instance of Schema.



26
27
28
# File 'lib/selenium/devtools/v85/schema.rb', line 26

def initialize(devtools)
  @devtools = devtools
end

Instance Method Details

#get_domainsObject



35
36
37
# File 'lib/selenium/devtools/v85/schema.rb', line 35

def get_domains
  @devtools.send_cmd('Schema.getDomains')
end

#on(event, &block) ⇒ Object



30
31
32
33
# File 'lib/selenium/devtools/v85/schema.rb', line 30

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