Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public sealed partial class ScrapeOptionsActionClick
/// <summary>
/// Initializes a new instance of the <see cref="ScrapeOptionsActionClick" /> class.
/// </summary>
/// <param name="type">
/// Click on an element
/// </param>
/// <param name="selector">
/// Query selector to find the element by<br/>
/// Example: #load-more-button
/// </param>
/// <param name="type">
/// Click on an element
/// </param>
/// <param name="all">
/// Clicks all elements matched by the selector, not just the first one. Does not throw an error if no elements match the selector.<br/>
/// Default Value: false
Expand All @@ -59,8 +59,8 @@ public ScrapeOptionsActionClick(
global::Firecrawl.ScrapeOptionsActionClickType type,
bool? all)
{
this.Selector = selector ?? throw new global::System.ArgumentNullException(nameof(selector));
this.Type = type;
this.Selector = selector ?? throw new global::System.ArgumentNullException(nameof(selector));
this.All = all;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ public sealed partial class ScrapeOptionsActionExecuteJavaScript
/// <summary>
/// Initializes a new instance of the <see cref="ScrapeOptionsActionExecuteJavaScript" /> class.
/// </summary>
/// <param name="type">
/// Execute JavaScript code on the page
/// </param>
/// <param name="script">
/// JavaScript code to execute<br/>
/// Example: document.querySelector('.button').click();
/// </param>
/// <param name="type">
/// Execute JavaScript code on the page
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ScrapeOptionsActionExecuteJavaScript(
string script,
global::Firecrawl.ScrapeOptionsActionExecuteJavaScriptType type)
{
this.Script = script ?? throw new global::System.ArgumentNullException(nameof(script));
this.Type = type;
this.Script = script ?? throw new global::System.ArgumentNullException(nameof(script));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ public sealed partial class ScrapeOptionsActionPressAKey
/// <summary>
/// Initializes a new instance of the <see cref="ScrapeOptionsActionPressAKey" /> class.
/// </summary>
/// <param name="type">
/// Press a key on the page
/// </param>
/// <param name="key">
/// Key to press<br/>
/// Example: Enter
/// </param>
/// <param name="type">
/// Press a key on the page
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ScrapeOptionsActionPressAKey(
string key,
global::Firecrawl.ScrapeOptionsActionPressAKeyType type)
{
this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key));
this.Type = type;
this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ public sealed partial class ScrapeOptionsActionWriteText
/// <summary>
/// Initializes a new instance of the <see cref="ScrapeOptionsActionWriteText" /> class.
/// </summary>
/// <param name="type">
/// Write text into an input field, text area, or contenteditable element. Note: You must first focus the element using a 'click' action before writing. The text will be typed character by character to simulate keyboard input.
/// </param>
/// <param name="text">
/// Text to type<br/>
/// Example: Hello, world!
/// </param>
/// <param name="type">
/// Write text into an input field, text area, or contenteditable element. Note: You must first focus the element using a 'click' action before writing. The text will be typed character by character to simulate keyboard input.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ScrapeOptionsActionWriteText(
string text,
global::Firecrawl.ScrapeOptionsActionWriteTextType type)
{
this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
this.Type = type;
this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
}

/// <summary>
Expand Down