ダイアログtypeこのページの内容typeダイアログのタイプを返します。alert、beforeunload、confirm、またはpromptのいずれかです。 使用方法 await dialog.type() 例 dialogType.jsconst type = await dialog.type(); 戻り値 <string> returns: ダイアログのタイプ