emulateMediaType
Emulates the given CSS media type for the page, mirroring the behavior of
printing ("print") or on-screen rendering ("screen"). Useful before a pdf
or screenshot to control how the page renders.
**Usage Example:**
mutation EmulatePrint {
goto(url: "https://example.com") {
status
}
emulateMediaType(type: print) {
time
}
pdf {
base64
}
}
**Field Definition:**
emulateMediaType(
type: MediaType!
): EmulateMediaTypeResponse
Arguments
emulateMediaType.type ● MediaType! non-null enum
The CSS media type to emulate
Type
EmulateMediaTypeResponse object
Response returned after emulating a CSS media type