Module: selenium-webdriverView Sourceclass SessionAlias for webdriver.SessionContains information about a WebDriver session. new Session(id, capabilities)ParametersidstringThe session ID. capabilitiesObjectThe session capabilities. Instance MethodsgetCapabilities()code »Returnswebdriver.CapabilitiesThis session's capabilities. getCapability(key)code »Retrieves the value of a specific capability. ParameterskeystringThe capability to retrieve. ReturnsThe capability value. getId()code »ReturnsstringThis session's ID. toJSON(arg0)code »Returns the JSON representation of this object, which is just the string session ID. Parametersarg0string=ReturnsstringThe JSON representation of this Session.