Skip to content

Commit 0c154f2

Browse files
committed
[java][cdp] Fix CDP logging test
1 parent 36e0213 commit 0c154f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/test/org/openqa/selenium/chromium/LoggingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void demonstrateLoggingWorks() throws InterruptedException {
5858
((JavascriptExecutor) driver).executeScript("console.log('I like cheese');");
5959

6060
assertThat(latch.await(10, SECONDS)).isTrue();
61-
assertThat(seen.get().toString()).contains("I like cheese");
61+
assertThat(seen.get().getMessages()).contains("I like cheese");
6262
}
6363

6464
@Test

0 commit comments

Comments
 (0)