From a12b3737e239e9f85de2ac753bcd20fc5714a57f Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sat, 24 Jan 2026 15:26:21 +0100 Subject: [PATCH] docs: simplify editor example with hardcoded URL --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a39bb1..206507b 100644 --- a/README.md +++ b/README.md @@ -89,8 +89,7 @@ playwriter -e "await state.dbg.setBreakpoint({ file: state.scripts[0].url, line: **Live edit page code:** ```bash playwriter -e "state.cdp = await getCDPSession({ page }); state.editor = createEditor({ cdp: state.cdp }); await state.editor.enable()" -playwriter -e "state.matches = await state.editor.grep({ regex: /DEBUG/ }); console.log(state.matches)" -playwriter -e "await state.editor.edit({ url: state.matches[0].url, oldString: 'const DEBUG = false', newString: 'const DEBUG = true' })" +playwriter -e "await state.editor.edit({ url: 'https://example.com/app.js', oldString: 'const DEBUG = false', newString: 'const DEBUG = true' })" ``` **Screenshot with labels:**