You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want call addScriptToEvaluateOnNewDocument method when i open a new page,But it not working,
`out := page.Call("Page.addScriptToEvaluateOnNewDocument", cdp.Object{
The text was updated successfully, but these errors were encountered:
simpleMemory
changed the title
page.Call('Page.addScriptToEvaluateOnNewDocument',param) is not work
page.Call('Page.addScriptToEvaluateOnNewDocument',param) is not working
Mar 10, 2020
ysmood
added
bug
When you are sure about it's a bug
question
Questions related to rod
and removed
bug
When you are sure about it's a bug
labels
Mar 10, 2020
I want call addScriptToEvaluateOnNewDocument method when i open a new page,But it not working,
`out := page.Call("Page.addScriptToEvaluateOnNewDocument", cdp.Object{
"source" :
"window.navigator.chrome = window.chrome = {...window.chrome, runtime: {},};",
})`
how can i do it like puppeteer
`
const page = await browser.newPage()
await page.evaluateOnNewDocument(
"window.navigator.chrome = window.chrome = {...window.chrome, runtime: {},};"
);
`
The text was updated successfully, but these errors were encountered: