fix: rename Route.continue_ to Route.resume (#253)
This commit is contained in:
@@ -888,7 +888,7 @@ class Field extends Element {
|
||||
output.add(offset + "}");
|
||||
return;
|
||||
}
|
||||
if ("Route.continue_.options.postData".equals(jsonPath)) {
|
||||
if ("Route.resume.options.postData".equals(jsonPath)) {
|
||||
output.add(offset + "public " + parentClass + " withPostData(String postData) {");
|
||||
output.add(offset + " this.postData = postData.getBytes(StandardCharsets.UTF_8);");
|
||||
output.add(offset + " return this;");
|
||||
|
||||
@@ -190,7 +190,7 @@ class Types {
|
||||
add("ElementHandle.selectOption.values", "Array<ElementHandle>|Array<Object>|Array<string>|ElementHandle|Object|null|string", "String");
|
||||
add("ElementHandle.setInputFiles.files", "Array<Object>|Array<path>|Object|path", "String");
|
||||
add("FileChooser.setFiles.files", "Array<Object>|Array<path>|Object|path", "String");
|
||||
add("Route.continue_.options.postData", "Buffer|string", "byte[]", new Empty());
|
||||
add("Route.resume.options.postData", "Buffer|string", "byte[]", new Empty());
|
||||
add("Route.fulfill.options.body", "Buffer|string", "String");
|
||||
add("Logger.log.message", "string|Error", "String");
|
||||
|
||||
@@ -199,9 +199,6 @@ class Types {
|
||||
add("Browser.newPage.options.geolocation", "Object", "Geolocation", new Empty());
|
||||
add("BrowserType.launchPersistentContext.options.geolocation", "Object", "Geolocation", new Empty());
|
||||
|
||||
// node.js types
|
||||
add("Route.continue_.options", "Object", "ContinueOptions");
|
||||
|
||||
// TODO: fix upstream types!
|
||||
add("Playwright.devices", "Object", "Map<String, DeviceDescriptor>", new Empty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user