Table of Contents

Class ReloadCommandSettings

Namespace
OpenQA.Selenium.DevTools.V147.Page
Assembly
Selenium.WebDriver.dll

Reloads given page optionally ignoring the cache.

public sealed class ReloadCommandSettings : ICommand
Inheritance
ReloadCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

IgnoreCache

If true, browser cache is ignored (as if the user pressed Shift+refresh).

[JsonPropertyName("ignoreCache")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? IgnoreCache { get; set; }

Property Value

bool?

LoaderId

If set, an error will be thrown if the target page's main frame's loader id does not match the provided id. This prevents accidentally reloading an unintended target in case there's a racing navigation.

[JsonPropertyName("loaderId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? LoaderId { get; set; }

Property Value

string

ScriptToEvaluateOnLoad

If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.

[JsonPropertyName("scriptToEvaluateOnLoad")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ScriptToEvaluateOnLoad { get; set; }

Property Value

string