How to use abortErrorReason method in Puppeteer

Best JavaScript code snippet using puppeteer

Run Puppeteer automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

sidebars.js

Source: sidebars.js Github

copy
1module.exports = {
2    docs: {
3        Puppeteer: [
4            {
5              type: 'doc',
6              id: 'puppeteer.puppeteer',
7              label: 'Puppeteer',
8            },
9            {
10            Methods: [
11              {
12                type: 'doc',
13                id: 'puppeteer.puppeteer.clearcustomqueryhandlers',
14                label: 'clearcustomqueryhandlers',
15              },
16              {
17                type: 'doc',
18                id: 'puppeteer.puppeteer.connect',
19                label: 'connect',
20              },
21              {
22                type: 'doc',
23                id: 'puppeteer.puppeteer.customqueryhandlernames',
24                label: 'customqueryhandlersnames',
25              },
26              {
27                type: 'doc',
28                id: 'puppeteer.puppeteer.devices',
29                label: 'devices',
30              },
31              {
32                type: 'doc',
33                id: 'puppeteer.puppeteer.errors',
34                label: 'errors',
35              },
36              {
37                type: 'doc',
38                id: 'puppeteer.puppeteer.networkconditions',
39                label: 'networkconditions',
40              },
41              {
42                type: 'doc',
43                id: 'puppeteer.puppeteer.registercustomqueryhandler',
44                label: 'registercustomqueryhandler',
45              },
46              {
47                type: 'doc',
48                id: 'puppeteer.puppeteer.unregistercustomqueryhandler',
49                label: 'unregistercustomqueryhandler',
50              },
51            ]
52            }
53        ],
54        "BrowserFetcher": [
55            {
56              type: 'doc',
57              id: 'puppeteer.browserfetcher',
58              label: 'BrowserFetcher',
59            },
60            {
61              Methods: [
62                {
63                  type: 'doc',
64                  id: 'puppeteer.browserfetcher.candownload',
65                  label: 'candownload',
66                },
67                {
68                  type: 'doc',
69                  id: 'puppeteer.browserfetcher.download',
70                  label: 'download',
71                },
72                {
73                  type: 'doc',
74                  id: 'puppeteer.browserfetcher.host',
75                  label: 'host',
76                },
77                {
78                  type: 'doc',
79                  id: 'puppeteer.browserfetcher.localrevisions',
80                  label: 'localrevisions',
81                },
82                {
83                  type: 'doc',
84                  id: 'puppeteer.browserfetcher.platform',
85                  label: 'platform',
86                },
87                {
88                  type: 'doc',
89                  id: 'puppeteer.browserfetcher.product',
90                  label: 'product',
91                },
92                {
93                  type: 'doc',
94                  id: 'puppeteer.browserfetcher.remove',
95                  label: 'remove',
96                },
97                {
98                  type: 'doc',
99                  id: 'puppeteer.browserfetcher.revisioninfo',
100                  label: 'revisioninfo',
101                },
102              ]
103            },
104        ],
105        "Browser": [
106          {
107            type: 'doc',
108            id: 'puppeteer.browser',
109            label: 'Browser',
110          },
111          {
112            Methods: [
113              {
114                type: 'doc',
115                id: 'puppeteer.browser.browsercontexts',
116                label: 'browsercontexts',
117              },
118              {
119                type: 'doc',
120                id: 'puppeteer.browser.close',
121                label: 'close',
122              },
123              {
124                type: 'doc',
125                id: 'puppeteer.browser.createincognitobrowsercontext',
126                label: 'createincognitobrowsercontext',
127              },
128              {
129                type: 'doc',
130                id: 'puppeteer.browser.defaultbrowsercontext',
131                label: 'defaultbrowsercontext',
132              },
133              {
134                type: 'doc',
135                id: 'puppeteer.browser.disconnect',
136                label: 'disconnect',
137              },
138              {
139                type: 'doc',
140                id: 'puppeteer.browser.isconnected',
141                label: 'isconnected',
142              },
143              {
144                type: 'doc',
145                id: 'puppeteer.browser.newpage',
146                label: 'newpage',
147              },
148              {
149                type: 'doc',
150                id: 'puppeteer.browser.pages',
151                label: 'pages',
152              },
153              {
154                type: 'doc',
155                id: 'puppeteer.browser.process',
156                label: 'process',
157              },
158              {
159                type: 'doc',
160                id: 'puppeteer.browser.target',
161                label: 'target',
162              },
163              {
164                type: 'doc',
165                id: 'puppeteer.browser.useragent',
166                label: 'useragent',
167              },
168              {
169                type: 'doc',
170                id: 'puppeteer.browser.waitfortarget',
171                label: 'waitfortarget',
172              },
173              {
174                type: 'doc',
175                id: 'puppeteer.browser.wsendpoint',
176                label: 'wsendpoint',
177              },
178            ]
179          },
180        ],
181        "BrowserContext": [
182          {
183            type: 'doc',
184            id: 'puppeteer.browsercontext',
185            label: 'BrowserContext',
186          },
187          {
188            Methods: [
189              {
190                type: 'doc',
191                id: 'puppeteer.browsercontext.browser',
192                label: 'browser',
193              },
194              {
195                type: 'doc',
196                id: 'puppeteer.browsercontext.overridepermissions',
197                label: 'overridepermissions',
198              },
199              {
200                type: 'doc',
201                id: 'puppeteer.browsercontext.close',
202                label: 'close',
203              },
204              {
205                type: 'doc',
206                id: 'puppeteer.browsercontext.isincognito',
207                label: 'isincognito',
208              },
209              {
210                type: 'doc',
211                id: 'puppeteer.browsercontext.newpage',
212                label: 'newpage',
213              },
214              {
215                type: 'doc',
216                id: 'puppeteer.browsercontext.overridepermissions',
217                label: 'overridepermissions',
218              },
219              {
220                type: 'doc',
221                id: 'puppeteer.browsercontext.pages',
222                label: 'pages',
223              },
224              {
225                type: 'doc',
226                id: 'puppeteer.browsercontext.targets',
227                label: 'targets',
228              },
229              {
230                type: 'doc',
231                id: 'puppeteer.browsercontext.waitfortarget',
232                label: 'waitfortarget',
233              },
234            ]
235          },
236        ],
237        "Page": [
238          {
239            type: 'doc',
240            id: 'puppeteer.page',
241            label: 'Page',
242          },
243          {
244            Namespaces: [
245              {
246                type: 'doc',
247                id: 'puppeteer.page.accessibility',
248                label: 'accessibility',
249              },
250              {
251                type: 'doc',
252                id: 'puppeteer.page.coverage',
253                label: 'coverage',
254              },
255              {
256                type: 'doc',
257                id: 'puppeteer.page.isdraginterceptionenabled',
258                label: 'isDragInterceptionEnabled',
259              },
260              {
261                type: 'doc',
262                id: 'puppeteer.page.keyboard',
263                label: 'keyboard',
264              },
265              {
266                type: 'doc',
267                id: 'puppeteer.page.mouse',
268                label: 'mouse',
269              },
270              {
271                type: 'doc',
272                id: 'puppeteer.page.touchscreen',
273                label: 'touchScreen',
274              },
275              {
276                type: 'doc',
277                id: 'puppeteer.page.tracing',
278                label: 'tracing',
279              },
280            ]
281          },
282          {
283            Methods: [
284              {
285                type: 'doc',
286                id: 'puppeteer.page._',
287                label: '$',
288              },
289              {
290                type: 'doc',
291                id: 'puppeteer.page.__',
292                label: '$$',
293              },
294              {
295                type: 'doc',
296                id: 'puppeteer.page.__eval',
297                label: '$$eval',
298              },
299              {
300                type: 'doc',
301                id: 'puppeteer.page._eval',
302                label: '$eval',
303              },
304              {
305                type: 'doc',
306                id: 'puppeteer.page._x',
307                label: '$x',
308              },
309              {
310                type: 'doc',
311                id: 'puppeteer.page.addscripttag',
312                label: 'addScriptTag',
313              },
314              {
315                type: 'doc',
316                id: 'puppeteer.page.addstyletag',
317                label: 'addStyleTag',
318              },
319              {
320                type: 'doc',
321                id: 'puppeteer.page.authenticate',
322                label: 'authenticate',
323              },
324              {
325                type: 'doc',
326                id: 'puppeteer.page.bringtofront',
327                label: 'bringToFront',
328              },
329              {
330                type: 'doc',
331                id: 'puppeteer.page.browser',
332                label: 'browser',
333              },
334              {
335                type: 'doc',
336                id: 'puppeteer.page.browsercontext',
337                label: 'browserContext',
338              },
339              {
340                type: 'doc',
341                id: 'puppeteer.page.click',
342                label: 'click',
343              },
344              {
345                type: 'doc',
346                id: 'puppeteer.page.close',
347                label: 'close',
348              },
349              {
350                type: 'doc',
351                id: 'puppeteer.page.content',
352                label: 'content()',
353              },
354              {
355                type: 'doc',
356                id: 'puppeteer.page.cookies',
357                label: 'cookies',
358              },
359              {
360                type: 'doc',
361                id: 'puppeteer.page.createpdfstream',
362                label: 'createPDFStream',
363              },
364              {
365                type: 'doc',
366                id: 'puppeteer.page.deletecookie',
367                label: 'deleteCookie',
368              },
369              {
370                type: 'doc',
371                id: 'puppeteer.page.emulate',
372                label: 'emulate',
373              },
374              {
375                type: 'doc',
376                id: 'puppeteer.page.emulatecputhrottling',
377                label: 'emulateCPUThrottling',
378              },
379              {
380                type: 'doc',
381                id: 'puppeteer.page.emulateidlestate',
382                label: 'emulateIdleState',
383              },
384              {
385                type: 'doc',
386                id: 'puppeteer.page.emulatemediafeatures',
387                label: 'emulateMediaFeatures',
388              },
389              {
390                type: 'doc',
391                id: 'puppeteer.page.emulatenetworkconditions',
392                label: 'emulateNetworkConditions',
393              },
394              {
395                type: 'doc',
396                id: 'puppeteer.page.emulatetimezone',
397                label: 'emulateTimeZone',
398              },
399              {
400                type: 'doc',
401                id: 'puppeteer.page.emulatevisiondeficiency',
402                label: 'emulateVisionDefinciency',
403              },
404              {
405                type: 'doc',
406                id: 'puppeteer.page.evaluate',
407                label: 'evaluate',
408              },
409              {
410                type: 'doc',
411                id: 'puppeteer.page.evaluatehandle',
412                label: 'evaluateHandle',
413              },
414              {
415                type: 'doc',
416                id: 'puppeteer.page.evaluateonnewdocument',
417                label: 'evaluateOnNewDocument',
418              },
419              {
420                type: 'doc',
421                id: 'puppeteer.page.exposefunction',
422                label: 'exposeFunction',
423              },
424              {
425                type: 'doc',
426                id: 'puppeteer.page.focus',
427                label: 'focus',
428              },
429              {
430                type: 'doc',
431                id: 'puppeteer.page.frames',
432                label: 'frames',
433              },
434              {
435                type: 'doc',
436                id: 'puppeteer.page.goback',
437                label: 'goBack',
438              },
439              {
440                type: 'doc',
441                id: 'puppeteer.page.goforward',
442                label: 'goForward',
443              },
444              {
445                type: 'doc',
446                id: 'puppeteer.page.goto',
447                label: 'goTo',
448              },
449              {
450                type: 'doc',
451                id: 'puppeteer.page.hover',
452                label: 'hover',
453              },
454              {
455                type: 'doc',
456                id: 'puppeteer.page.isclosed',
457                label: 'isClosed',
458              },
459              {
460                type: 'doc',
461                id: 'puppeteer.page.isjavascriptenabled',
462                label: 'isJavaScriptEnbled',
463              },
464              {
465                type: 'doc',
466                id: 'puppeteer.page.mainframe',
467                label: 'mainFrame',
468              },
469              {
470                type: 'doc',
471                id: 'puppeteer.page.metrics',
472                label: 'metrics',
473              },
474              {
475                type: 'doc',
476                id: 'puppeteer.page.once',
477                label: 'once',
478              },
479              {
480                type: 'doc',
481                id: 'puppeteer.page.pdf',
482                label: 'PDF',
483              },
484              {
485                type: 'doc',
486                id: 'puppeteer.page.queryobjects',
487                label: 'queryObjects',
488              },
489              {
490                type: 'doc',
491                id: 'puppeteer.page.reload',
492                label: 'reload',
493              },
494              {
495                type: 'doc',
496                id: 'puppeteer.page.screenshot',
497                label: 'screenshot',
498              },
499              {
500                type: 'doc',
501                id: 'puppeteer.page.select',
502                label: 'select',
503              },
504              {
505                type: 'doc',
506                id: 'puppeteer.page.setbypasscsp',
507                label: 'setByPassCSP',
508              },
509              {
510                type: 'doc',
511                id: 'puppeteer.page.setcacheenabled',
512                label: 'setCacheEnaled',
513              },
514              {
515                type: 'doc',
516                id: 'puppeteer.page.setcontent',
517                label: 'setContent',
518              },
519              {
520                type: 'doc',
521                id: 'puppeteer.page.setcookie',
522                label: 'setCookie',
523              },
524              {
525                type: 'doc',
526                id: 'puppeteer.page.setdefaultnavigationtimeout',
527                label: 'setDefaultNavigationTimeOut',
528              },
529              {
530                type: 'doc',
531                id: 'puppeteer.page.setdefaulttimeout',
532                label: 'setDefaultTimeOut',
533              },
534              {
535                type: 'doc',
536                id: 'puppeteer.page.setdraginterception',
537                label: 'setDragInterception',
538              },
539              {
540                type: 'doc',
541                id: 'puppeteer.page.setextrahttpheaders',
542                label: 'setExtraHTTPHeader',
543              },
544              {
545                type: 'doc',
546                id: 'puppeteer.page.setgeolocation',
547                label: 'setGeoLocation',
548              },
549              {
550                type: 'doc',
551                id: 'puppeteer.page.setjavascriptenabled',
552                label: 'setJavaScriptEnabled',
553              },
554              {
555                type: 'doc',
556                id: 'puppeteer.page.setofflinemode',
557                label: 'setOfflineMode',
558              },
559              {
560                type: 'doc',
561                id: 'puppeteer.page.setrequestinterception',
562                label: 'setRequestInterception',
563              },
564              {
565                type: 'doc',
566                id: 'puppeteer.page.setuseragent',
567                label: 'setUserAgent',
568              },
569              {
570                type: 'doc',
571                id: 'puppeteer.page.setviewport',
572                label: 'setViewPort',
573              },
574              {
575                type: 'doc',
576                id: 'puppeteer.page.tap',
577                label: 'tap',
578              },
579              {
580                type: 'doc',
581                id: 'puppeteer.page.target',
582                label: 'target',
583              },
584              {
585                type: 'doc',
586                id: 'puppeteer.page.title',
587                label: 'title',
588              },
589              {
590                type: 'doc',
591                id: 'puppeteer.page.type',
592                label: 'type',
593              },
594              {
595                type: 'doc',
596                id: 'puppeteer.page.url',
597                label: 'url',
598              },
599              {
600                type: 'doc',
601                id: 'puppeteer.page.viewport',
602                label: 'viewport',
603              },
604              {
605                type: 'doc',
606                id: 'puppeteer.page.waitfor',
607                label: 'waitFor',
608              },
609              {
610                type: 'doc',
611                id: 'puppeteer.page.waitforfilechooser',
612                label: 'waitForFileChooser',
613              },
614              {
615                type: 'doc',
616                id: 'puppeteer.page.waitforfunction',
617                label: 'waitForFunction',
618              },
619              {
620                type: 'doc',
621                id: 'puppeteer.page.waitfornavigation',
622                label: 'waitForNavigation',
623              },
624              {
625                type: 'doc',
626                id: 'puppeteer.page.waitforrequest',
627                label: 'waitForRequest',
628              },
629              {
630                type: 'doc',
631                id: 'puppeteer.page.waitforresponse',
632                label: 'waitForResponse',
633              },
634              {
635                type: 'doc',
636                id: 'puppeteer.page.waitforselector',
637                label: 'waitForSelector',
638              },
639              {
640                type: 'doc',
641                id: 'puppeteer.page.waitfortimeout',
642                label: 'waittimeout',
643              },
644              {
645                type: 'doc',
646                id: 'puppeteer.page.waitforxpath',
647                label: 'waitForXPath',
648              },
649              {
650                type: 'doc',
651                id: 'puppeteer.page.workers',
652                label: 'workers',
653              },
654            ]
655          },
656        ],
657        "WebWorker": [
658          {
659            type: 'doc',
660            id: 'puppeteer.webworker',
661            label: 'WebWorker',
662          },
663          {
664            Methods: [
665              {
666                type: 'doc',
667                id: 'puppeteer.webworker.evaluate',
668                label: 'evaluate',
669              },
670              {
671                type: 'doc',
672                id: 'puppeteer.webworker.evaluatehandle',
673                label: 'evaluatehandle',
674              },
675              {
676                type: 'doc',
677                id: 'puppeteer.webworker.executioncontext',
678                label: 'executioncontext',
679              },
680              {
681                type: 'doc',
682                id: 'puppeteer.webworker.url',
683                label: 'url',
684              },
685            ]
686          },
687        ],
688        "Accessibility": [
689          {
690            type: 'doc',
691            id: 'puppeteer.accessibility',
692            label: 'Accessibility',
693          },
694          {
695            Methods: [
696              {
697                type: 'doc',
698                id: 'puppeteer.accessibility.snapshot',
699                label: 'snapshot',
700              },
701            ]
702          },
703        ],
704        "Keyboard": [
705          {
706            type: 'doc',
707            id: 'puppeteer.keyboard',
708            label: 'keyboard',
709          },
710          {
711            Methods: [
712              {
713                type: 'doc',
714                id: 'puppeteer.keyboard.down',
715                label: 'down',
716              },
717              {
718                type: 'doc',
719                id: 'puppeteer.keyboard.press',
720                label: 'press',
721              },
722              {
723                type: 'doc',
724                id: 'puppeteer.keyboard.sendcharacter',
725                label: 'sendCharacter',
726              },
727              {
728                type: 'doc',
729                id: 'puppeteer.keyboard.type',
730                label: 'type',
731              },
732              {
733                type: 'doc',
734                id: 'puppeteer.keyboard.up',
735                label: 'up',
736              },
737            ]
738          },
739        ],
740        "Mouse": [
741          {
742            type: 'doc',
743            id: 'puppeteer.mouse',
744            label: 'mouse',
745          },
746          {
747            Methods: [
748              {
749                type: 'doc',
750                id: 'puppeteer.mouse.click',
751                label: 'click',
752              },
753              {
754                type: 'doc',
755                id: 'puppeteer.mouse.down',
756                label: 'down',
757              },
758              {
759                type: 'doc',
760                id: 'puppeteer.mouse.drag',
761                label: 'drag',
762              },
763              {
764                type: 'doc',
765                id: 'puppeteer.mouse.draganddrop',
766                label: 'dragAndDrop',
767              },
768              {
769                type: 'doc',
770                id: 'puppeteer.mouse.dragenter',
771                label: 'dragEnter',
772              },
773              {
774                type: 'doc',
775                id: 'puppeteer.mouse.dragover',
776                label: 'dragOver',
777              },
778              {
779                type: 'doc',
780                id: 'puppeteer.mouse.drop',
781                label: 'drop',
782              },
783              {
784                type: 'doc',
785                id: 'puppeteer.mouse.move',
786                label: 'move',
787              },
788              {
789                type: 'doc',
790                id: 'puppeteer.mouse.up',
791                label: 'up',
792              },
793              {
794                type: 'doc',
795                id: 'puppeteer.mouse.wheel',
796                label: 'wheel',
797              },
798            ]
799          },
800        ],
801        "TouchScreen": [
802          {
803            type: 'doc',
804            id: 'puppeteer.touchscreen',
805            label: 'touchScreen',
806          },
807          {
808            Methods: [
809              {
810                type: 'doc',
811                id: 'puppeteer.touchscreen.tap',
812                label: 'tap'
813              }
814            ]
815          },
816        ],
817        "Tracing": [
818          {
819            type: 'doc',
820            id: 'puppeteer.tracing',
821            label: 'Tracing',
822          },
823          {
824            Methods: [
825              {
826                type: 'doc',
827                id: 'puppeteer.tracing._client',
828                label: 'client',
829              },
830              {
831                type: 'doc',
832                id: 'puppeteer.tracing._path',
833                label: 'path',
834              },
835              {
836                type: 'doc',
837                id: 'puppeteer.tracing._recording',
838                label: 'recording',
839              },
840              {
841                type: 'doc',
842                id: 'puppeteer.tracing.start',
843                label: 'start',
844              },
845              {
846                type: 'doc',
847                id: 'puppeteer.tracing.stop',
848                label: 'stop',
849              },
850            ]
851          },
852        ],
853        "Dialog": [
854          {
855            type: 'doc',
856            id: 'puppeteer.dialog',
857            label: 'dialog',
858          },
859          {
860            Methods: [
861              {
862                type: 'doc',
863                id: 'puppeteer.dialog.accept',
864                label: 'accept',
865              },
866              {
867                type: 'doc',
868                id: 'puppeteer.dialog.defaultvalue',
869                label: 'defaultValue',
870              },
871              {
872                type: 'doc',
873                id: 'puppeteer.dialog.dismiss',
874                label: 'dismiss',
875              },
876              {
877                type: 'doc',
878                id: 'puppeteer.dialog.message',
879                label: 'message',
880              },
881              {
882                type: 'doc',
883                id: 'puppeteer.dialog.type',
884                label: 'type',
885              },
886            ]
887          },
888        ],
889        "ConsoleMessage": [
890          {
891            type: 'doc',
892            id: 'puppeteer.consolemessage',
893            label: 'consoleMessage',
894          },
895          {
896            Methods: [
897              {
898                type: 'doc',
899                id: 'puppeteer.consolemessage.args',
900                label: 'args',
901              },
902              {
903                type: 'doc',
904                id: 'puppeteer.consolemessage.location',
905                label: 'location',
906              },
907              {
908                type: 'doc',
909                id: 'puppeteer.consolemessage.stacktrace',
910                label: 'stackTrace',
911              },
912              {
913                type: 'doc',
914                id: 'puppeteer.consolemessage.text',
915                label: 'text',
916              },
917              {
918                type: 'doc',
919                id: 'puppeteer.consolemessage.type',
920                label: 'type',
921              },
922            ]
923          },
924        ],
925        "Frame": [
926          {
927            type: 'doc',
928            id: 'puppeteer.frame',
929            label: 'frame',
930          },
931          {
932            Methods: [
933              {
934                type: 'doc',
935                id: 'puppeteer.frame._',
936                label: '$',
937              },
938              {
939                type: 'doc',
940                id: 'puppeteer.frame.__',
941                label: '$$',
942              },
943              {
944                type: 'doc',
945                id: 'puppeteer.frame.__eval',
946                label: '$$eval',
947              },
948              {
949                type: 'doc',
950                id: 'puppeteer.frame._eval',
951                label: '$eval',
952              },
953              {
954                type: 'doc',
955                id: 'puppeteer.frame._x',
956                label: '$x',
957              },
958              {
959                type: 'doc',
960                id: 'puppeteer.frame.addscripttag',
961                label: 'addScriptTag',
962              },
963              {
964                type: 'doc',
965                id: 'puppeteer.frame.addstyletag',
966                label: 'addStyleTag',
967              },
968              {
969                type: 'doc',
970                id: 'puppeteer.frame.childframes',
971                label: 'childFrames',
972              },
973              {
974                type: 'doc',
975                id: 'puppeteer.frame.click',
976                label: 'click',
977              },
978              {
979                type: 'doc',
980                id: 'puppeteer.frame.content',
981                label: 'content',
982              },
983              {
984                type: 'doc',
985                id: 'puppeteer.frame.evaluate',
986                label: 'evaluate',
987              },
988              {
989                type: 'doc',
990                id: 'puppeteer.frame.evaluatehandle',
991                label: 'evaluateHandle',
992              },
993              {
994                type: 'doc',
995                id: 'puppeteer.frame.executioncontext',
996                label: 'executionContext',
997              },
998              {
999                type: 'doc',
1000                id: 'puppeteer.frame.focus',
1001                label: 'focus',
1002              },
1003              {
1004                type: 'doc',
1005                id: 'puppeteer.frame.goto',
1006                label: 'goTo',
1007              },
1008              {
1009                type: 'doc',
1010                id: 'puppeteer.frame.hover',
1011                label: 'hover',
1012              },
1013              {
1014                type: 'doc',
1015                id: 'puppeteer.frame.isdetached',
1016                label: 'isDetached',
1017              },
1018              {
1019                type: 'doc',
1020                id: 'puppeteer.frame.name',
1021                label: 'name',
1022              },
1023              {
1024                type: 'doc',
1025                id: 'puppeteer.frame.parentframe',
1026                label: 'parentFrame',
1027              },
1028              {
1029                type: 'doc',
1030                id: 'puppeteer.frame.select',
1031                label: 'select',
1032              },
1033              {
1034                type: 'doc',
1035                id: 'puppeteer.frame.setcontent',
1036                label: 'setContent',
1037              },
1038              {
1039                type: 'doc',
1040                id: 'puppeteer.frame.tap',
1041                label: 'tap',
1042              },
1043              {
1044                type: 'doc',
1045                id: 'puppeteer.frame.title',
1046                label: 'title',
1047              },
1048              {
1049                type: 'doc',
1050                id: 'puppeteer.frame.type',
1051                label: 'type',
1052              },
1053              {
1054                type: 'doc',
1055                id: 'puppeteer.frame.url',
1056                label: 'url',
1057              },
1058              {
1059                type: 'doc',
1060                id: 'puppeteer.frame.waitfor',
1061                label: 'waitFor',
1062              },
1063              {
1064                type: 'doc',
1065                id: 'puppeteer.frame.waitforfunction',
1066                label: 'waitForFunction',
1067              },
1068              {
1069                type: 'doc',
1070                id: 'puppeteer.frame.waitfornavigation',
1071                label: 'waitForNavigation',
1072              },
1073              {
1074                type: 'doc',
1075                id: 'puppeteer.frame.waitforselector',
1076                label: 'waitForSelector',
1077              },
1078              {
1079                type: 'doc',
1080                id: 'puppeteer.frame.waitfortimeout',
1081                label: 'waitForTimeOut',
1082              },
1083              {
1084                type: 'doc',
1085                id: 'puppeteer.frame.waitforxpath',
1086                label: 'waitForXPath',
1087              },
1088            ]
1089          }
1090        ],
1091        "FileChooser": [
1092          {
1093            type: 'doc',
1094            id: 'puppeteer.filechooser',
1095            label: 'FileChooser',
1096          },
1097          {
1098            Methods: [
1099              {
1100                type: 'doc',
1101                id: 'puppeteer.filechooser.accept',
1102                label: 'accept',
1103              },
1104              {
1105                type: 'doc',
1106                id: 'puppeteer.filechooser.cancel',
1107                label: 'cancel',
1108              },
1109              {
1110                type: 'doc',
1111                id: 'puppeteer.filechooser.ismultiple',
1112                label: 'ismultiple',
1113              },
1114            ]
1115          },
1116        ],
1117        "ExecutionContext": [
1118          {
1119            type: 'doc',
1120            id: 'puppeteer.executioncontext',
1121            label: 'executionContext',
1122          },
1123          {
1124            Methods: [
1125              {
1126                type: 'doc',
1127                id: 'puppeteer.executioncontext.evaluate',
1128                label: 'evaluate',
1129              },
1130              {
1131                type: 'doc',
1132                id: 'puppeteer.executioncontext.evaluatehandle',
1133                label: 'evaluateHandle',
1134              },
1135              {
1136                type: 'doc',
1137                id: 'puppeteer.executioncontext.frame',
1138                label: 'frame',
1139              },
1140              {
1141                type: 'doc',
1142                id: 'puppeteer.executioncontext.queryobjects',
1143                label: 'queryobjects',
1144              },
1145            ]
1146          },
1147        ],
1148        "JSHandle": [
1149          {
1150            type: 'doc',
1151            id: 'puppeteer.jshandle',
1152            label: 'JSHandle',
1153          },
1154          {
1155            Methods: [
1156              {
1157                type: 'doc',
1158                id: 'puppeteer.jshandle.aselement',
1159                label: 'asElement',
1160              },
1161              {
1162                type: 'doc',
1163                id: 'puppeteer.jshandle.dispose',
1164                label: 'dispose',
1165              },
1166              {
1167                type: 'doc',
1168                id: 'puppeteer.jshandle.evaluate',
1169                label: 'evaluate',
1170              },
1171              {
1172                type: 'doc',
1173                id: 'puppeteer.jshandle.evaluatehandle',
1174                label: 'evaluateHandle',
1175              },
1176              {
1177                type: 'doc',
1178                id: 'puppeteer.jshandle.executioncontext',
1179                label: 'executionContext',
1180              },
1181              {
1182                type: 'doc',
1183                id: 'puppeteer.jshandle.getproperties',
1184                label: 'getProperties',
1185              },
1186              {
1187                type: 'doc',
1188                id: 'puppeteer.jshandle.getproperty',
1189                label: 'getProperty',
1190              },
1191              {
1192                type: 'doc',
1193                id: 'puppeteer.jshandle.jsonvalue',
1194                label: 'JSONValue',
1195              },
1196            ]
1197          },
1198        ],
1199        "ElementHandle": [
1200          {
1201            type: 'doc',
1202            id: 'puppeteer.elementhandle',
1203            label: 'elementHandle',
1204          },
1205          {
1206            Methods: [
1207              {
1208                type: 'doc',
1209                id: 'puppeteer.elementhandle._',
1210                label: '$',
1211              },
1212              {
1213                type: 'doc',
1214                id: 'puppeteer.elementhandle.__',
1215                label: '$$',
1216              },
1217              {
1218                type: 'doc',
1219                id: 'puppeteer.elementhandle.__eval',
1220                label: '$$eval',
1221              },
1222              {
1223                type: 'doc',
1224                id: 'puppeteer.elementhandle._eval',
1225                label: '$eval',
1226              },
1227              {
1228                type: 'doc',
1229                id: 'puppeteer.elementhandle._x',
1230                label: '$x',
1231              },
1232              {
1233                type: 'doc',
1234                id: 'puppeteer.elementhandle.aselement',
1235                label: 'asElement',
1236              },
1237              {
1238                type: 'doc',
1239                id: 'puppeteer.elementhandle.boundingbox',
1240                label: 'boundingBox',
1241              },
1242              {
1243                type: 'doc',
1244                id: 'puppeteer.elementhandle.boxmodel',
1245                label: 'boxModel',
1246              },
1247              {
1248                type: 'doc',
1249                id: 'puppeteer.elementhandle.click',
1250                label: 'click',
1251              },
1252              {
1253                type: 'doc',
1254                id: 'puppeteer.elementhandle.contentframe',
1255                label: 'contentFrame',
1256              },
1257              {
1258                type: 'doc',
1259                id: 'puppeteer.elementhandle.focus',
1260                label: 'focus',
1261              },
1262              {
1263                type: 'doc',
1264                id: 'puppeteer.elementhandle.hover',
1265                label: 'hover',
1266              },
1267              {
1268                type: 'doc',
1269                id: 'puppeteer.elementhandle.clickablepoint',
1270                label: 'clickablePoint',
1271              },
1272              {
1273                type: 'doc',
1274                id: 'puppeteer.elementhandle.drag',
1275                label: 'drag',
1276              },
1277              {
1278                type: 'doc',
1279                id: 'puppeteer.elementhandle.draganddrop',
1280                label: 'dragAndDrop',
1281              },
1282              {
1283                type: 'doc',
1284                id: 'puppeteer.elementhandle.dragenter',
1285                label: 'dragEnter',
1286              },
1287              {
1288                type: 'doc',
1289                id: 'puppeteer.elementhandle.dragover',
1290                label: 'dragOver',
1291              },
1292              {
1293                type: 'doc',
1294                id: 'puppeteer.elementhandle.drop',
1295                label: 'drop',
1296              },
1297              {
1298                type: 'doc',
1299                id: 'puppeteer.elementhandle.isintersectingviewport',
1300                label: 'isIntersectingViewPort',
1301              },
1302              {
1303                type: 'doc',
1304                id: 'puppeteer.elementhandle.press',
1305                label: 'press',
1306              },
1307              {
1308                type: 'doc',
1309                id: 'puppeteer.elementhandle.screenshot',
1310                label: 'screenshot',
1311              },
1312              {
1313                type: 'doc',
1314                id: 'puppeteer.elementhandle.select',
1315                label: 'select',
1316              },
1317              {
1318                type: 'doc',
1319                id: 'puppeteer.elementhandle.tap',
1320                label: 'tap',
1321              },
1322              {
1323                type: 'doc',
1324                id: 'puppeteer.elementhandle.type',
1325                label: 'type',
1326              },
1327              {
1328                type: 'doc',
1329                id: 'puppeteer.elementhandle.uploadfile',
1330                label: 'uploadFile',
1331              },
1332            ]
1333          },
1334        ],
1335        "HTTPRequest": [
1336          {
1337            type: 'doc',
1338            id: 'puppeteer.httprequest',
1339            label: 'httpRequest',
1340          },
1341          {
1342            Methods: [
1343              {
1344                type: 'doc',
1345                id: 'puppeteer.httprequest.abort',
1346                label: 'abort',
1347              },
1348              {
1349                type: 'doc',
1350                id: 'puppeteer.httprequest.aborterrorreason',
1351                label: 'abortErrorReason',
1352              },
1353              {
1354                type: 'doc',
1355                id: 'puppeteer.httprequest.enqueueinterceptaction',
1356                label: 'enqueueInterCeptaction',
1357              },
1358              {
1359                type: 'doc',
1360                id: 'puppeteer.httprequest.failure',
1361                label: 'failure',
1362              },
1363              {
1364                type: 'doc',
1365                id: 'puppeteer.httprequest.finalizeinterceptions',
1366                label: 'finalizeInterception',
1367              },
1368              {
1369                type: 'doc',
1370                id: 'puppeteer.httprequest.frame',
1371                label: 'frame',
1372              },
1373              {
1374                type: 'doc',
1375                id: 'puppeteer.httprequest.headers',
1376                label: 'headers',
1377              },
1378              {
1379                type: 'doc',
1380                id: 'puppeteer.httprequest.isnavigationrequest',
1381                label: 'isNavigationRequest',
1382              },
1383              {
1384                type: 'doc',
1385                id: 'puppeteer.httprequest.method',
1386                label: 'method',
1387              },
1388              {
1389                type: 'doc',
1390                id: 'puppeteer.httprequest.postdata',
1391                label: 'postData',
1392              },
1393              {
1394                type: 'doc',
1395                id: 'puppeteer.httprequest.redirectchain',
1396                label: 'redirectChain',
1397              },
1398              {
1399                type: 'doc',
1400                id: 'puppeteer.httprequest.resourcetype',
1401                label: 'resourceType',
1402              },
1403              {
1404                type: 'doc',
1405                id: 'puppeteer.httprequest.respond',
1406                label: 'respond',
1407              },
1408              {
1409                type: 'doc',
1410                id: 'puppeteer.httprequest.response',
1411                label: 'response',
1412              },
1413              {
1414                type: 'doc',
1415                id: 'puppeteer.httprequest.responseforrequest',
1416                label: 'responseForRequest',
1417              },
1418              {
1419                type: 'doc',
1420                id: 'puppeteer.httprequest.url',
1421                label: 'hurl',
1422              },
1423            ]
1424          },
1425        ],
1426        "HTTPRespose": [
1427          {
1428            type: 'doc',
1429            id: 'puppeteer.httpresponse',
1430            label: 'httpResponse',
1431          },
1432          {
1433            Methods: [
1434              {
1435                type: 'doc',
1436                id: 'puppeteer.httpresponse.buffer',
1437                label: 'buffer',
1438              },
1439              {
1440                type: 'doc',
1441                id: 'puppeteer.httpresponse.frame',
1442                label: 'frame',
1443              },
1444              {
1445                type: 'doc',
1446                id: 'puppeteer.httpresponse.fromcache',
1447                label: 'fromCache',
1448              },
1449              {
1450                type: 'doc',
1451                id: 'puppeteer.httpresponse.fromserviceworker',
1452                label: 'fromServiceWorker',
1453              },
1454              {
1455                type: 'doc',
1456                id: 'puppeteer.httpresponse.headers',
1457                label: 'headers',
1458              },
1459              {
1460                type: 'doc',
1461                id: 'puppeteer.httpresponse.json',
1462                label: 'JSON',
1463              },
1464              {
1465                type: 'doc',
1466                id: 'puppeteer.httpresponse.ok',
1467                label: 'OK',
1468              },
1469              {
1470                type: 'doc',
1471                id: 'puppeteer.httpresponse.remoteaddress',
1472                label: 'remoteAddress',
1473              },
1474              {
1475                type: 'doc',
1476                id: 'puppeteer.httpresponse.request',
1477                label: 'request',
1478              },
1479              {
1480                type: 'doc',
1481                id: 'puppeteer.httpresponse.securitydetails',
1482                label: 'securityDetails',
1483              },
1484              {
1485                type: 'doc',
1486                id: 'puppeteer.httpresponse.status',
1487                label: 'status',
1488              },
1489              {
1490                type: 'doc',
1491                id: 'puppeteer.httpresponse.statustext',
1492                label: 'statusText',
1493              },
1494              {
1495                type: 'doc',
1496                id: 'puppeteer.httpresponse.text',
1497                label: 'text',
1498              },
1499              {
1500                type: 'doc',
1501                id: 'puppeteer.httpresponse.url',
1502                label: 'URL',
1503              },
1504            ]
1505          },
1506        ],
1507        "SecurityDetails": [
1508          {
1509            type: 'doc',
1510            id: 'puppeteer.securitydetails',
1511            label: 'securityDetails',
1512          },
1513          {
1514            Methods: [
1515              {
1516                type: 'doc',
1517                id: 'puppeteer.securitydetails.issuer',
1518                label: 'issuer',
1519              },
1520              {
1521                type: 'doc',
1522                id: 'puppeteer.securitydetails.protocol',
1523                label: 'protocol',
1524              },
1525              {
1526                type: 'doc',
1527                id: 'puppeteer.securitydetails.subjectalternativenames',
1528                label: 'subjectAlternativeNames',
1529              },
1530              {
1531                type: 'doc',
1532                id: 'puppeteer.securitydetails.subjectname',
1533                label: 'subjectName',
1534              },
1535              {
1536                type: 'doc',
1537                id: 'puppeteer.securitydetails.validfrom',
1538                label: 'validFrom',
1539              },
1540              {
1541                type: 'doc',
1542                id: 'puppeteer.securitydetails.validto',
1543                label: 'validTo',
1544              },
1545            ]
1546          },
1547        ],
1548        "Target": [
1549          {
1550            type: 'doc',
1551            id: 'puppeteer.target',
1552            label: 'target',
1553          },
1554          {
1555            Methods: [
1556              {
1557                type: 'doc',
1558                id: 'puppeteer.target.browser',
1559                label: 'browser',
1560              },
1561              {
1562                type: 'doc',
1563                id: 'puppeteer.target.browsercontext',
1564                label: 'browserContext',
1565              },
1566              {
1567                type: 'doc',
1568                id: 'puppeteer.target.createcdpsession',
1569                label: 'createCDPSSession',
1570              },
1571              {
1572                type: 'doc',
1573                id: 'puppeteer.target.opener',
1574                label: 'opener',
1575              },
1576              {
1577                type: 'doc',
1578                id: 'puppeteer.target.page',
1579                label: 'page',
1580              },
1581              {
1582                type: 'doc',
1583                id: 'puppeteer.target.type',
1584                label: 'type',
1585              },
1586              {
1587                type: 'doc',
1588                id: 'puppeteer.target.url',
1589                label: 'url',
1590              },
1591              {
1592                type: 'doc',
1593                id: 'puppeteer.target.worker',
1594                label: 'worker',
1595              },
1596            ]
1597          },
1598        ],
1599        "CDPSession": [
1600          {
1601            type: 'doc',
1602            id: 'puppeteer.cdpsession',
1603            label: 'CDPSession',
1604          },
1605          {
1606            Methods: [
1607              {
1608                type: 'doc',
1609                id: 'puppeteer.cdpsession.connection',
1610                label: 'connection',
1611              },
1612              {
1613                type: 'doc',
1614                id: 'puppeteer.cdpsession.detach',
1615                label: 'detach',
1616              },
1617              {
1618                type: 'doc',
1619                id: 'puppeteer.cdpsession.send',
1620                label: 'send',
1621              },
1622            ]
1623          },
1624        ],
1625        "Coverage": [
1626          {
1627            type: 'doc',
1628            id: 'puppeteer.coverage',
1629            label: 'coverage',
1630          },
1631          {
1632            Methods: [
1633              {
1634                type: 'doc',
1635                id: 'puppeteer.coverage.startcsscoverage',
1636                label: 'startCSSCoverage',
1637              },
1638              {
1639                type: 'doc',
1640                id: 'puppeteer.coverage.startjscoverage',
1641                label: 'startJSCoverage',
1642              },
1643              {
1644                type: 'doc',
1645                id: 'puppeteer.coverage.stopcsscoverage',
1646                label: 'stopCSSCoverage',
1647              },
1648              {
1649                type: 'doc',
1650                id: 'puppeteer.coverage.stopjscoverage',
1651                label: 'stopJSCoverage',
1652              },
1653            ]
1654          },
1655        ],
1656        "TimeOutError": [
1657          {
1658            type: 'doc',
1659            id: 'puppeteer.timeouterror',
1660            label: 'timeOutError',
1661          },
1662        ],
1663        "EventEmitter": [
1664          {
1665            type: 'doc',
1666            id: 'puppeteer.eventemitter',
1667            label: 'eventEmitter',
1668          },
1669          {
1670            Methods: [
1671              {
1672                type: 'doc',
1673                id: 'puppeteer.eventemitter.addlistener',
1674                label: 'addListener',
1675              },
1676              {
1677                type: 'doc',
1678                id: 'puppeteer.eventemitter.emit',
1679                label: 'emit',
1680              },
1681              {
1682                type: 'doc',
1683                id: 'puppeteer.eventemitter.listenercount',
1684                label: 'listenerCount',
1685              },
1686              {
1687                type: 'doc',
1688                id: 'puppeteer.eventemitter.off',
1689                label: 'off',
1690              },
1691              {
1692                type: 'doc',
1693                id: 'puppeteer.eventemitter.on',
1694                label: 'on',
1695              },
1696              {
1697                type: 'doc',
1698                id: 'puppeteer.eventemitter.once',
1699                label: 'once',
1700              },
1701              {
1702                type: 'doc',
1703                id: 'puppeteer.eventemitter.removelistener',
1704                label: 'removeListener',
1705              },{
1706                type: 'doc',
1707                id: 'puppeteer.eventemitter.removealllisteners',
1708                label: 'removeAllListener',
1709              },
1710            ]
1711          },
1712        ],
1713    },
1714};
1715
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

Run JavaScript Tests on LambdaTest Cloud Grid

Execute automation tests with Puppeteer on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)