content
Sets the given HTML content on the page with an optional waitUntil parameter
**Usage Example:**
mutation SetContent {
content(html: "<h1>Hello, World!</h1>") {
status
}
}
**Field Definition:**
content(
html: String!
timeout: Float
waitUntil: WaitUntilHistory
waitUntilAll: [WaitUntilHistory!]
): HTTPResponse
Arguments
content.html ● String! non-null scalar
When present, sets the content of page to the value passed, then returns the pages content
content.timeout ● Float scalar
The maximum amount of time, in milliseconds, to wait for the content to load, overriding any defaults. Default timeout is 30 seconds, or 30000.
content.waitUntil ● WaitUntilHistory enum
When to consider the page fully-loaded and proceed with further execution, used in conjunction with the value parameter
content.waitUntilAll ● [WaitUntilHistory!] list enum
Wait for every listed lifecycle event. Use this instead of waitUntil when preserving an ordered REST array contract.
Type
HTTPResponse object
Response returned after a navigation event