@Test
public void testLogBufferShouldBeResetAfterEachGetLogCall() {
Set<String> logTypes = driver.manage().logs().getAvailableLogTypes();
for (String logType : logTypes) {
driver.get(pages.simpleTestPage);
LogEntries firstEntries = driver.manage().logs().get(logType);
if (!firstEntries.getAll().isEmpty()) {
LogEntries secondEntries = driver.manage().logs().get(logType);
assertFalse(LogEntriesChecks.hasOverlappingLogEntries(
firstEntries, secondEntries),
String.format("There should be no overlapping log entries in " +
"consecutive get log calls for %s logs", logType));
}