1
0
mirror of synced 2026-05-22 18:53:15 +00:00

chore: roll driver to 1.46.0-beta (#1638)

This commit is contained in:
Yury Semikhatsky
2024-07-31 13:58:01 -07:00
committed by GitHub
parent 73d22552e6
commit 46f4ac1f33
49 changed files with 1264 additions and 446 deletions
@@ -276,6 +276,11 @@ class TypeRef extends Element {
private static final Map<String, String> customTypeNames = new HashMap<>();
static {
customTypeNames.put("APIRequest.newContext.options.clientCertificates", "ClientCertificate");
customTypeNames.put("Browser.newContext.options.clientCertificates", "ClientCertificate");
customTypeNames.put("Browser.newPage.options.clientCertificates", "ClientCertificate");
customTypeNames.put("BrowserType.launchPersistentContext.options.clientCertificates", "ClientCertificate");
customTypeNames.put("BrowserContext.addCookies.cookies", "Cookie");
customTypeNames.put("BrowserContext.cookies", "Cookie");
@@ -1095,8 +1100,9 @@ class CustomClass extends TypeDefinition {
@Override
void writeTo(List<String> output, String offset) {
if (asList("RecordHar", "RecordVideo").contains(name)) {
if (asList("ClientCertificate").contains(name)) {
output.add("import java.nio.file.Path;");
output.add("");
}
String access = (parent.typeScope() instanceof CustomClass) || topLevelTypes().containsKey(name) ? "public " : "";
output.add(offset + access + "class " + name + " {");