web: live chat transcript over chat_event (C5)
This commit is contained in:
@@ -208,6 +208,14 @@ export async function launchChrome({ width = 1440, height = 900, chromePath } =
|
||||
{ what: `load of ${nextUrl}` },
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Install a script that runs in every document created from now on, before
|
||||
* the page's own scripts — the CDP hook a UI check uses to wrap a global
|
||||
* (for example to record the page's WebSocket) before the app boots.
|
||||
*/
|
||||
async addInitScript(source) {
|
||||
await session("Page.addScriptToEvaluateOnNewDocument", { source });
|
||||
},
|
||||
/** Set an input's value and fire input/change so the app sees it. */
|
||||
async fill(selector, value) {
|
||||
const ok = await api.evaluate(`(() => {
|
||||
|
||||
Reference in New Issue
Block a user