Skip to content
Snippets Groups Projects
HandleJavaScriptDialogCommand.cs 698 B
Newer Older
  • Learn to ignore specific revisions
  • using MasterDevs.ChromeDevTools;
    using Newtonsoft.Json;
    using System.Collections.Generic;
    
    namespace MasterDevs.ChromeDevTools.Protocol.Page
    {
    	/// <summary>
    	/// Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
    	/// </summary>
    	[Command(ProtocolName.Page.HandleJavaScriptDialog)]
    	public class HandleJavaScriptDialogCommand
    	{
    		/// <summary>
    		/// Gets or sets Whether to accept or dismiss the dialog.
    		/// </summary>
    		public bool Accept { get; set; }
    		/// <summary>
    		/// Gets or sets The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.
    		/// </summary>
    		public string PromptText { get; set; }
    	}
    }