Class: Selenium::DevTools::V130::Schema

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

Instance Method Summary collapse

Constructor Details

#initialize(devtools) ⇒ Schema

Returns a new instance of Schema.



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

def initialize(devtools)
  @devtools = devtools
end

Instance Method Details

#get_domainsObject



35
36
37
# File 'lib/selenium/devtools/v130/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/v130/schema.rb', line 30

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