Class: Selenium::WebDriver::BiDi::Protocol::Domain Private

Inherits:
Object
  • Object
show all
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.

Instance Method Summary collapse

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