webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
11 lines • 574 B
TypeScript
import type { PDFPrintOptions } from '../types.js';
/**
* Command implementation of the `savePDF` command.
*
* BiDi sessions render with `browsingContext.print`. Classic sessions keep
* `printPage`. BiDi receives only the fields the caller set, so the browser
* keeps its defaults for the rest. A BiDi `unsupported operation` error is
* not caught and is not retried with `printPage`.
*/
export declare function savePDF(this: WebdriverIO.Browser, filepath: string, options?: PDFPrintOptions | null): Promise<Buffer<ArrayBuffer>>;
//# sourceMappingURL=savePDF.d.ts.map