BotSharp/src/Infrastructure/BotSharp.Abstraction/Browsing/Models/PageActionArgs.cs

47 lines
1.3 KiB
C#
Raw Normal View History

2024-06-10 15:51:14 +00:00
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!;
2024-08-05 00:15:27 +00:00
/// <summary>
/// This value has to be set to true if you want to get the page XHR/ Fetch responses
/// </summary>
2024-06-10 15:51:14 +00:00
public bool OpenNewTab { get; set; } = false;
2024-08-12 14:43:39 +00:00
public bool EnableResponseCallback { get; set; } = false;
/// <summary>
/// Exclude urls for XHR/ Fetch responses
/// </summary>
public string[]? ExcludeResponseUrls { get; set; }
2024-08-12 14:43:39 +00:00
/// <summary>
/// Only include urls for XHR/ Fetch responses
/// </summary>
public string[]? IncludeResponseUrls { get; set; }
2024-08-14 03:44:53 +00:00
/// <summary>
/// If set to true, the response will be stored in memory
/// </summary>
public bool ResponseInMemory { get; set; } = false;
public List<WebPageResponseData>? ResponseContainer { get; set; }
2024-08-05 00:15:27 +00:00
public bool UseExistingPage { get; set; } = false;
2024-06-21 18:23:18 +00:00
2024-07-27 03:38:28 +00:00
public bool WaitForNetworkIdle { get; set; } = true;
2024-06-26 12:48:15 +00:00
public float? Timeout { get; set; }
2024-08-04 22:48:52 +00:00
/// <summary>
/// Wait time in seconds after page is opened
/// </summary>
public int WaitTime { get; set; }
2024-06-10 15:51:14 +00:00
}