@@ -110,7 +110,7 @@ export const commands: Commands = {
110110 name : 'geolocation' ,
111111 type : 'string' ,
112112 description :
113- 'Geolocation (`<latitude>x<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit clear the geolocation override.' ,
113+ 'Geolocation (`<latitude>x<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override.' ,
114114 required : false ,
115115 } ,
116116 userAgent : {
@@ -155,11 +155,18 @@ export const commands: Commands = {
155155 description : 'An optional list of arguments to pass to the function.' ,
156156 required : false ,
157157 } ,
158+ dialogAction : {
159+ name : 'dialogAction' ,
160+ type : 'string' ,
161+ description :
162+ 'Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept.' ,
163+ required : false ,
164+ } ,
158165 } ,
159166 } ,
160167 fill : {
161168 description :
162- 'Type text into a input, text area or select an option from a <select> element.' ,
169+ 'Type text into an input, text area or select an option from a <select> element.' ,
163170 category : 'Input automation' ,
164171 args : {
165172 uid : {
@@ -184,25 +191,6 @@ export const commands: Commands = {
184191 } ,
185192 } ,
186193 } ,
187- fill_form : {
188- description : 'Fill out multiple form elements at once' ,
189- category : 'Input automation' ,
190- args : {
191- elements : {
192- name : 'elements' ,
193- type : 'array' ,
194- description : 'Elements from snapshot to fill out.' ,
195- required : true ,
196- } ,
197- includeSnapshot : {
198- name : 'includeSnapshot' ,
199- type : 'boolean' ,
200- description :
201- 'Whether to include a snapshot in the response. Default is false.' ,
202- required : false ,
203- } ,
204- } ,
205- } ,
206194 get_console_message : {
207195 description :
208196 'Gets a console message by its ID. You can get all messages by calling list_console_messages.' ,
@@ -233,14 +221,14 @@ export const commands: Commands = {
233221 name : 'requestFilePath' ,
234222 type : 'string' ,
235223 description :
236- 'The absolute or relative path to save the request body to. If omitted, the body is returned inline.' ,
224+ 'The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.' ,
237225 required : false ,
238226 } ,
239227 responseFilePath : {
240228 name : 'responseFilePath' ,
241229 type : 'string' ,
242230 description :
243- 'The absolute or relative path to save the response body to. If omitted, the body is returned inline.' ,
231+ 'The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.' ,
244232 required : false ,
245233 } ,
246234 } ,
@@ -324,7 +312,7 @@ export const commands: Commands = {
324312 name : 'pageSize' ,
325313 type : 'integer' ,
326314 description :
327- 'Maximum number of messages to return. When omitted, returns all requests .' ,
315+ 'Maximum number of messages to return. When omitted, returns all messages .' ,
328316 required : false ,
329317 } ,
330318 pageIdx : {
@@ -388,7 +376,7 @@ export const commands: Commands = {
388376 } ,
389377 } ,
390378 list_pages : {
391- description : 'Get a list of pages open in the browser.' ,
379+ description : 'Get a list of pages open in the browser.' ,
392380 category : 'Navigation automation' ,
393381 args : { } ,
394382 } ,
@@ -601,8 +589,8 @@ export const commands: Commands = {
601589 } ,
602590 take_memory_snapshot : {
603591 description :
604- 'Capture a memory heapsnapshot of the currently selected page to memory leak debugging ' ,
605- category : 'Performance ' ,
592+ 'Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks. ' ,
593+ category : 'Memory ' ,
606594 args : {
607595 filePath : {
608596 name : 'filePath' ,
@@ -637,7 +625,7 @@ export const commands: Commands = {
637625 name : 'uid' ,
638626 type : 'string' ,
639627 description :
640- 'The uid of an element on the page from the page content snapshot. If omitted takes a pages screenshot.' ,
628+ 'The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot.' ,
641629 required : false ,
642630 } ,
643631 fullPage : {
@@ -722,24 +710,4 @@ export const commands: Commands = {
722710 } ,
723711 } ,
724712 } ,
725- wait_for : {
726- description : 'Wait for the specified text to appear on the selected page.' ,
727- category : 'Navigation automation' ,
728- args : {
729- text : {
730- name : 'text' ,
731- type : 'array' ,
732- description :
733- 'Non-empty list of texts. Resolves when any value appears on the page.' ,
734- required : true ,
735- } ,
736- timeout : {
737- name : 'timeout' ,
738- type : 'integer' ,
739- description :
740- 'Maximum wait time in milliseconds. If set to 0, the default timeout will be used.' ,
741- required : false ,
742- } ,
743- } ,
744- } ,
745713} as const ;
0 commit comments