Method: Selenium::WebDriver::BiDi::Session#subscribe
- Defined in:
- lib/selenium/webdriver/bidi/session.rb
#subscribe(events, browsing_contexts = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 42 43 44 |
# File 'lib/selenium/webdriver/bidi/session.rb', line 39 def subscribe(events, browsing_contexts = nil) opts = {events: Array(events)} opts[:browsing_contexts] = Array(browsing_contexts) if browsing_contexts @bidi.send_cmd('session.subscribe', **opts) end |