Class: Selenium::DevTools::V150::SystemInfo
- Inherits:
-
Object
- Object
- Selenium::DevTools::V150::SystemInfo
- Defined in:
- lib/selenium/devtools/v150/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.
27 28 29 |
# File 'lib/selenium/devtools/v150/system_info.rb', line 27 def initialize(devtools) @devtools = devtools end |
Instance Method Details
#get_feature_state(feature_state:) ⇒ Object
40 41 42 43 |
# File 'lib/selenium/devtools/v150/system_info.rb', line 40 def get_feature_state(feature_state:) @devtools.send_cmd('SystemInfo.getFeatureState', featureState: feature_state) end |
#get_info ⇒ Object
36 37 38 |
# File 'lib/selenium/devtools/v150/system_info.rb', line 36 def get_info @devtools.send_cmd('SystemInfo.getInfo') end |
#get_process_info ⇒ Object
45 46 47 |
# File 'lib/selenium/devtools/v150/system_info.rb', line 45 def get_process_info @devtools.send_cmd('SystemInfo.getProcessInfo') end |
#on(event, &block) ⇒ Object
31 32 33 34 |
# File 'lib/selenium/devtools/v150/system_info.rb', line 31 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["SystemInfo.#{event}"] << block end |