[java][cdp] Fix CDP logging test
@@ -58,7 +58,7 @@ void demonstrateLoggingWorks() throws InterruptedException {
((JavascriptExecutor) driver).executeScript("console.log('I like cheese');");
assertThat(latch.await(10, SECONDS)).isTrue();
- assertThat(seen.get().toString()).contains("I like cheese");
+ assertThat(seen.get().getMessages()).contains("I like cheese");
}
@Test
