Class: Selenium::DevTools::V130::SystemInfo
- Inherits:
-
Object
- Object
- Selenium::DevTools::V130::SystemInfo
- Defined in:
- lib/selenium/devtools/v130/system_info.rb
Instance Method Summary collapse
- #get_feature_state(feature_state:) ⇒ Object
- #get_info ⇒ Object
- #get_process_info ⇒ Object
-
#initialize(devtools) ⇒ SystemInfo
constructor
A new instance of SystemInfo.
- #on(event, &block) ⇒ Object
Constructor Details
#initialize(devtools) ⇒ SystemInfo
Returns a new instance of SystemInfo.
26 27 28 |
# File 'lib/selenium/devtools/v130/system_info.rb', line 26 def initialize(devtools) @devtools = devtools end |
Instance Method Details
#get_feature_state(feature_state:) ⇒ Object
39 40 41 42 |
# File 'lib/selenium/devtools/v130/system_info.rb', line 39 def get_feature_state(feature_state:) @devtools.send_cmd('SystemInfo.getFeatureState', featureState: feature_state) end |
#get_info ⇒ Object
35 36 37 |
# File 'lib/selenium/devtools/v130/system_info.rb', line 35 def get_info @devtools.send_cmd('SystemInfo.getInfo') end |
#get_process_info ⇒ Object
44 45 46 |
# File 'lib/selenium/devtools/v130/system_info.rb', line 44 def get_process_info @devtools.send_cmd('SystemInfo.getProcessInfo') end |
#on(event, &block) ⇒ Object
30 31 32 33 |
# File 'lib/selenium/devtools/v130/system_info.rb', line 30 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["SystemInfo.#{event}"] << block end |