class Capybara::SessionConfig

def app_host=(url)

def app_host=(url)
  unless url.nil? || url.match?(URI::DEFAULT_PARSER.make_regexp)
    raise ArgumentError, "Capybara.app_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}."
  end
  @app_host = url
end

def default_host=(url)

def default_host=(url)
  unless url.nil? || url.match?(URI::DEFAULT_PARSER.make_regexp)
    raise ArgumentError, "Capybara.default_host should be set to a url (http://www.example.com). Attempted to set #{url.inspect}."
  end
  @default_host = url
end

def initialize_copy(other)

def initialize_copy(other)
  super
  @server_errors = @server_errors.dup
end

def server_errors=(errors)

def server_errors=(errors)
  (@server_errors ||= []).replace(errors.dup)
end

def server_host

Returns:
  • (String) - The IP address bound by default server
def server_host
  @server_host || '127.0.0.1'
end

def test_id=(id)

Parameters:
  • id (String, Symbol, nil) -- Name of the attribute to use as the test id
def test_id=(id)
  @test_id = id&.to_sym
end