Table of Contents

Class CreateIsolatedWorldCommandSettings

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

Creates an isolated world for the given frame.

public sealed class CreateIsolatedWorldCommandSettings : ICommand
Inheritance
CreateIsolatedWorldCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

ContentSecurityPolicy

An optional content security policy to set for the isolated world. If omitted, any existing CSP for the world will be cleared. Note that clearing or updating the CSP does not immediately affect the active context in the same document because LocalDOMWindow caches the ContentSecurityPolicy object. The change takes effect on subsequent navigations when a new window context is created.

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

Property Value

string

FrameId

Id of the frame in which the isolated world should be created.

[JsonPropertyName("frameId")]
public string FrameId { get; set; }

Property Value

string

GrantUniveralAccess

Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.

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

Property Value

bool?

WorldName

An optional name which is reported in the Execution Context.

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

Property Value

string