"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[71954],{3905:(e,t,a)=>{a.d(t,{Zo:()=>c,kt:()=>m});varr=a(67294);functionn(e,t,a){returntine?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}functionl(e,t){vara=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}returna}functionp(e){for(vart=1;t<arguments.length;t++){vara=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}returne}functioni(e,t){if(null==e)return{};vara,r,n=function(e,t){if(null==e)return{};vara,r,n={},l=Object.keys(e);for(r=0;r<l.length;r++)a=l[r],t.indexOf(a)>=0||(n[a]=e[a]);returnn}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)a=l[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}returnn}varo=r.createContext({}),s=function(e){vart=r.useContext(o),a=t;returne&&(a="function"==typeofe?e(t):p(p({},t),e)),a},c=function(e){vart=s(e.components);returnr.createElement(o.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){vara=e.components,n=e.mdxType,l=e.originalType,o=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),d=s(a),m=n,g=d["".concat(o,".").concat(m)]||d[m]||u[m]||l;returna?r.createElement(g,p(p({ref:t},c),{},{components:a})):r.createElement(g,p({ref:t},c))}));functionm(e,t){vara=arguments,n=t&&t.mdxType;if("string"==typeofe||n){varl=a.length,p=newArray(l);p[0]=d;vari={};for(varoint)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeofe?e:n,p[1]=i;for(vars=2;s<l;s++)p[s]=a[s];returnr.createElement.apply(null,p)}returnr.createElement.apply(null,a)}d.displayName="MDXCreateElement"},27301:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>o,toc:()=>c});a(67294);varr=a(3905);functionn(){returnn=Object.assign||function(e){for(vart=1;t<arguments.length;t++){vara=arguments[t];for(varrina)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}returne},n.apply(this,arguments)}functionl(e,t){if(null==e)return{};vara,r,n=function(e,t){if(null==e)return{};vara,r,n={},l=Object.keys(e);for(r=0;r<l.length;r++)a=l[r],t.indexOf(a)>=0||(n[a]=e[a]);returnn}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)a=l[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}returnn}constp={sidebar_label:"Dialog"},i="Dialog class",o={unversionedId:"api/puppeteer.dialog",id:"api/puppeteer.dialog",title:"Dialog class",description:"Dialog instances are dispatched by the Page via the dialog event.",source:"@site/../docs/api/puppeteer.dialog.md",sourceDirName:"api",slug:"/api/puppeteer.dialog",permalink:"/next/api/puppeteer.dialog",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Dialog"},sidebar:"sidebar",previous:{title:"FileChooser.isMultiple",permalink:"/next/api/puppeteer.filechooser.ismultiple"},next:{title:"Dialog.accept",permalink:"/next/api/puppeteer.dialog.accept"}},s={},c=[{value:"Remarks",id:"remarks",level:2},{value:"Example",id:"example",level:2},{value:"Methods",id:"methods",level:2}],u={toc:c};functiond(e){var{components:t}=e,a=l(e,["components"]);return(0,r.kt)("wrapper",n({},u,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",n({},{id:"dialog-class"}),"Dialog class"),(0,r.kt)("p",null,"Dialog instances are dispatched by the ",(0,r.kt)("a",n({parentName:"p"},{href:"/next/api/puppeteer.page"}),"Page")," via the ",(0,r.kt)("inlineCode",{parentName:"p"},"dialog")," event."),(0,r.kt)("p",null,(0,r.kt)("stron