using BotSharp.Abstraction.Browsing.Enums;
namespace BotSharp.Abstraction.Browsing.Models;
public class PageActionArgs
{
public BroswerActionEnum Action { get; set; }
public string? Content { get; set; }
public string? Direction { get; set; }
public string Url { get; set; } = null!;
///
/// This value has to be set to true if you want to get the page XHR/ Fetch responses
///
public bool OpenNewTab { get; set; } = false;
///
/// Exclude urls for XHR/ Fetch responses
///
public string[]? ExcludeResponseUrls { get; set; }
public bool UseExistingPage { get; set; } = false;
public bool WaitForNetworkIdle { get; set; } = true;
public float? Timeout { get; set; }
///
/// Wait time in seconds after page is opened
///
public int WaitTime { get; set; }
}