Class: Selenium::DevTools::V85::Schema
- Inherits:
-
Object
- Object
- Selenium::DevTools::V85::Schema
- Defined in:
- lib/selenium/devtools/v85/schema.rb
Instance Method Summary collapse
- #get_domains ⇒ Object
-
#initialize(devtools) ⇒ Schema
constructor
A new instance of Schema.
- #on(event, &block) ⇒ Object
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_domains ⇒ Object
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 |