Method: Selenium::WebDriver::BiDi::Session#unsubscribe
- Defined in:
- lib/selenium/webdriver/bidi/session.rb
#unsubscribe(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.
46 47 48 49 50 51 |
# File 'lib/selenium/webdriver/bidi/session.rb', line 46 def unsubscribe(events, browsing_contexts = nil) opts = {events: Array(events)} opts[:browsing_contexts] = Array(browsing_contexts) if browsing_contexts @bidi.send_cmd('session.unsubscribe', **opts) end |