1
0
mirror of synced 2026-08-05 06:56:56 +00:00

feat: roll driver, implement context tracing and network APIs (#444)

This commit is contained in:
Yury Semikhatsky
2021-05-17 23:32:44 +00:00
committed by GitHub
parent bcf879b8f0
commit 02bd360319
15 changed files with 536 additions and 39 deletions
@@ -867,7 +867,7 @@ class Interface extends TypeDefinition {
if ("Download".equals(jsonName)) {
output.add("import java.io.InputStream;");
}
if (asList("Page", "Frame", "ElementHandle", "FileChooser", "Browser", "BrowserContext", "BrowserType", "Download", "Route", "Selectors", "Video").contains(jsonName)) {
if (asList("Page", "Frame", "ElementHandle", "FileChooser", "Browser", "BrowserContext", "BrowserType", "Download", "Route", "Selectors", "Tracing", "Video").contains(jsonName)) {
output.add("import java.nio.file.Path;");
}
output.add("import java.util.*;");
@@ -1016,6 +1016,10 @@ class Enum extends TypeDefinition {
}
enumValues.add(value.substring(1, value.length() - 1).replace("-", "_").toUpperCase());
}
if ("BrowserChannel".equals(jsonName)) {
// Firefox stable 'channel' was removed in 1.12.0
enumValues.add("@Deprecated FIREFOX_STABLE");
}
}
@Override