1package com.selenium2.easy.test.server;2import java.net.URL;3import org.openqa.selenium.remote.http.HttpClient;4import org.openqa.selenium.remote.http.HttpMethod;5import org.openqa.selenium.remote.http.HttpRequest;6import org.openqa.selenium.remote.http.HttpResponse;7import org.openqa.selenium.remote.http.RemoteCall;8import org.testng.annotations.Test;9public class GetSessions {10public void testGetSessions() throws Exception {11 HttpClient client = new HttpClient();12 HttpRequest request = new HttpRequest(HttpMethod.GET, "/sessions");13 HttpResponse response = call.execute(client, request);14 System.out.println(response.getContentString());15}16}17{"status":0,"value":[{"id":"c4e4f4d4-4d8e-4b9f-8e2c-1e3d3d3e3a3a","capabilities":{"browserName":"firefox","version":"47.0","platform":"ANY","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":true,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":true,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"manual","httpProxy":"localhost:8888","sslProxy":"localhost:8888","ftpProxy":"localhost:8888","noProxy":""},"webdriver.remote.sessionid":"c4e4f4d4-4d8e-4b9f-8e2c-1e3d3d3e3a3a"}},{"id":"d5e5f5g5-5h8h-5i9i-8j2j-1k3k3k4k4k4k","capabilities":{"browserName":"firefox","version":"47.0","platform":"ANY","javascriptEnabled