public async Task SessionClosingTest() { Chrome c = new Chrome(remoteDebuggingPort: 9993, headless: false); await c.CreateNewSession(); var currentSessions = await c.GetActiveSessions(); await c.CloseSession(currentSessions.First()); var newSessions = await c.GetActiveSessions(); Assert.IsTrue(currentSessions.Count() - 1 == newSessions.Count(), "The number of sessions before closing - 1 was not equal to the sessions found later"); c.Dispose(); }