Class: Selenium::DevTools::V125::PWA
- Inherits:
-
Object
- Object
- Selenium::DevTools::V125::PWA
- Defined in:
- lib/selenium/devtools/v125/pwa.rb
Instance Method Summary collapse
- #get_os_app_state(manifest_id:) ⇒ Object
-
#initialize(devtools) ⇒ PWA
constructor
A new instance of PWA.
- #on(event, &block) ⇒ Object
Constructor Details
#initialize(devtools) ⇒ PWA
Returns a new instance of PWA.
26 27 28 |
# File 'lib/selenium/devtools/v125/pwa.rb', line 26 def initialize(devtools) @devtools = devtools end |
Instance Method Details
#get_os_app_state(manifest_id:) ⇒ Object
35 36 37 38 |
# File 'lib/selenium/devtools/v125/pwa.rb', line 35 def get_os_app_state(manifest_id:) @devtools.send_cmd('PWA.getOsAppState', manifestId: manifest_id) end |
#on(event, &block) ⇒ Object
30 31 32 33 |
# File 'lib/selenium/devtools/v125/pwa.rb', line 30 def on(event, &block) event = EVENTS[event] if event.is_a?(Symbol) @devtools.callbacks["PWA.#{event}"] << block end |