diff --git a/src/launcher/inject.js b/src/launcher/inject.js index 2851ae8..3b912a3 100644 --- a/src/launcher/inject.js +++ b/src/launcher/inject.js @@ -75,7 +75,10 @@ export default async (CDP, proc, injectionType = 'browser', { browserName } = { const Window = { page: { eval: evalInWindow, - loaded: pageLoadPromise + loaded: pageLoadPromise, + + get title() { return evalInWindow('document.title'); }, + set title(val) { return evalInWindow(`document.title = \`${val}\``); } }, ipc: IPC,