BrowserGridOptionsFluent
ConsoleMonster.Interactive
The fluent methods of BrowserGridOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- BrowserGridOptionsFluent
Methods
public static BrowserGridOptions OpenBy(BrowserGridOptions browserGridOptions, Func<Uri, bool>? value) #Sets BrowserGridOptions.Open: Opens the page; returns false when it could not. Null runs the command in the BROWSER environment variable when set, otherwise the default browser (Windows, macOS, or xdg-open on Linux). A launcher that exits with a failure code before the page answers counts as not opened.
Parameters
- browserGridOptions ConsoleMonster.Interactive.BrowserGridOptions
- The instance.
- value System.Func<System.Uri, bool>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.BrowserGridOptions { Open = value }; browserGridOptions.OpenBy(value);public static BrowserGridOptions Timeout(BrowserGridOptions browserGridOptions, TimeSpan? value) #Sets BrowserGridOptions.Timeout: How long to wait for OK or Cancel; null waits until the page answers or the caller cancels.
Parameters
- browserGridOptions ConsoleMonster.Interactive.BrowserGridOptions
- The instance.
- value System.TimeSpan?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.BrowserGridOptions { Timeout = value }; browserGridOptions.Timeout(value);public static BrowserGridOptions WhenOpened(BrowserGridOptions browserGridOptions, Action<Uri>? value) #Sets BrowserGridOptions.Opened: Called with the page address before the browser opens, for example to print it.
Parameters
- browserGridOptions ConsoleMonster.Interactive.BrowserGridOptions
- The instance.
- value System.Action<System.Uri>?
- The callback.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.BrowserGridOptions { Opened = value }; browserGridOptions.WhenOpened(value);