launcher: add Page.title getter and setter
This commit is contained in:
parent
31fb7478aa
commit
7c55d94f71
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user