Class PageAddScriptTagOptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class PageAddScriptTagOptions
- Inheritance
-
PageAddScriptTagOptions
- Inherited Members
Constructors
PageAddScriptTagOptions()
public PageAddScriptTagOptions()
PageAddScriptTagOptions(PageAddScriptTagOptions)
public PageAddScriptTagOptions(PageAddScriptTagOptions clone)
Parameters
clone
PageAddScriptTagOptions
Properties
Content
Raw JavaScript content to be injected into frame.
[JsonPropertyName("content")]
public string? Content { get; set; }
Property Value
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
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
Url
URL of a script to be added.
[JsonPropertyName("url")]
public string? Url { get; set; }