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, Emulation, Input, Log, Network, Permissions, Script, Session, Speculation, Storage, UserAgentClientHints, WebExtension
Instance Method Summary collapse
-
#initialize(source) ⇒ Domain
constructor
private
A new instance of Domain.
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 |
# File 'lib/selenium/webdriver/bidi/protocol/domain.rb', line 26 def initialize(source) @transport = source.is_a?(Driver) ? source.send(:bridge).transport : source raise(Error::WebDriverError, 'a Driver or Transport is required') unless @transport.is_a?(Transport) end |