# Command: Get Sessions
"""
	sessions(wd::RemoteWebDriver)

Returns a list of the currently active sessions.

!!! note
    This is a JSON Wire Protocol functionality.
"""
function sessions(wd::RemoteWebDriver)::Vector{String}
    @unpack addr = wd
    response = HTTP.get("$addr/sessions", [("Content-Type" => "application/json; charset=utf-8")])
    @assert response.status == 200
    output = JSON3.read(response.body).value
    isempty(output) ? Vector{String}() :
    collect(session.id for session in JSON3.read(response.body).value)
end
