Class: Selenium::WebDriver::BiDi::Protocol::Domain Private
- Inherits:
-
Object
- Object
- Selenium::WebDriver::BiDi::Protocol::Domain
- Defined in:
- lib/selenium/webdriver/bidi/protocol/domain.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Bluetooth, Browser, BrowsingContext, DigitalCredentials, Emulation, Input, Log, MozDebugging, MozProfiler, Network, Permissions, Script, Session, Speculation, Storage, UserAgentClientHints, WebExtension
Instance Method Summary collapse
-
#initialize(source) ⇒ Domain
constructor
private
A new instance of Domain.
-
#remove_listener(id) ⇒ Object
private
Stops invoking the listener an
add_<event>_listenermethod returned the id for, without waiting for a running invocation to finish.
Constructor Details
#initialize(source) ⇒ Domain
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.
Returns a new instance of Domain.
26 27 28 29 30 31 |
# File 'lib/selenium/webdriver/bidi/protocol/domain.rb', line 26 def initialize(source) connection = source.is_a?(Driver) ? source.send(:bridge).connection : source raise(Error::WebDriverError, 'a Driver or connection is required') unless connection.respond_to?(:send_cmd) @transport = Transport.new(connection) end |
Instance Method Details
#remove_listener(id) ⇒ 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.
Stops invoking the listener an add_<event>_listener method returned the id for, without
waiting for a running invocation to finish. Local only, and a no-op for an unknown id.
35 36 37 |
# File 'lib/selenium/webdriver/bidi/protocol/domain.rb', line 35 def remove_listener(id) @transport.remove_listener(id) end |