Table of Contents

Class FrameAddScriptTagOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class FrameAddScriptTagOptions
Inheritance
FrameAddScriptTagOptions
Inherited Members

Constructors

FrameAddScriptTagOptions()

public FrameAddScriptTagOptions()

FrameAddScriptTagOptions(FrameAddScriptTagOptions)

public FrameAddScriptTagOptions(FrameAddScriptTagOptions clone)

Parameters

clone FrameAddScriptTagOptions

Properties

Content

Raw JavaScript content to be injected into frame.

[JsonPropertyName("content")]
public string? Content { get; set; }

Property Value

string

Path

Path to the JavaScript file to be injected into frame. If path is a relative path, then it is resolved relative to the current working directory.

[JsonPropertyName("path")]
public string? Path { get; set; }

Property Value

string

Type

Script type. Use 'module' in order to load a Javascript ES6 module. See script for more details.

[JsonPropertyName("type")]
public string? Type { get; set; }

Property Value

string

Url

URL of a script to be added.

[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string