Class: Selenium::DevTools::V85::SystemInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(devtools) ⇒ SystemInfo

Returns a new instance of SystemInfo.



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

def initialize(devtools)
  @devtools = devtools
end

Instance Method Details

#get_infoObject



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

def get_info
  @devtools.send_cmd('SystemInfo.getInfo')
end

#get_process_infoObject



39
40
41
# File 'lib/selenium/devtools/v85/system_info.rb', line 39

def get_process_info
  @devtools.send_cmd('SystemInfo.getProcessInfo')
end

#on(event, &block) ⇒ Object



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

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