File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -277,16 +277,15 @@ so returned values have to JSON-serializable.
277277
278278- ** args** (array) _ (optional)_ : An optional list of arguments to pass to the function.
279279- ** function** (string) ** (required)** : A JavaScript function to run in the currently selected page.
280- Example without arguments: `() => {
280+ Example without arguments: `() => {
281281 return document.title
282282}` or ` async () => {
283283 return await fetch("example.com")
284284}`.
285- Example with arguments: `(el) => {
285+ Example with arguments: `(el) => {
286286 return el.innerText;
287287}`
288288
289-
290289---
291290
292291### ` list_console_messages `
Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ uid=1_0 RootWebArea ""
7373 await withBrowser ( async ( response , context ) => {
7474 const page = context . getSelectedPage ( ) ;
7575 await page . setContent (
76- html `< label > username< input name ="username " value ="mcp " /> </ label > ` ,
76+ html `< label
77+ > username< input
78+ name ="username "
79+ value ="mcp "
80+ /> </ label > ` ,
7781 ) ;
7882 await page . focus ( 'input' ) ;
7983 response . setIncludeSnapshot ( true ) ;
You can’t perform that action at this time.
0 commit comments