Table of Contents

Class BrowsingContextScriptModule

Namespace
OpenQA.Selenium.BiDi.Modules.BrowsingContext
Assembly
WebDriver.dll
public class BrowsingContextScriptModule
Inheritance
BrowsingContextScriptModule
Inherited Members

Constructors

BrowsingContextScriptModule(BrowsingContext, ScriptModule)

public BrowsingContextScriptModule(BrowsingContext context, ScriptModule scriptModule)

Parameters

context BrowsingContext
scriptModule ScriptModule

Methods

AddPreloadScriptAsync(string, BrowsingContextAddPreloadScriptOptions?)

public Task<PreloadScript> AddPreloadScriptAsync(string functionDeclaration, BrowsingContextAddPreloadScriptOptions? options = null)

Parameters

functionDeclaration string
options BrowsingContextAddPreloadScriptOptions

Returns

Task<PreloadScript>

CallFunctionAsync(string, bool, CallFunctionOptions?, ContextTargetOptions?)

public Task<EvaluateResult.Success> CallFunctionAsync(string functionDeclaration, bool awaitPromise, CallFunctionOptions? options = null, ContextTargetOptions? targetOptions = null)

Parameters

functionDeclaration string
awaitPromise bool
options CallFunctionOptions
targetOptions ContextTargetOptions

Returns

Task<EvaluateResult.Success>

CallFunctionAsync<TResult>(string, bool, CallFunctionOptions?, ContextTargetOptions?)

public Task<TResult?> CallFunctionAsync<TResult>(string functionDeclaration, bool awaitPromise, CallFunctionOptions? options = null, ContextTargetOptions? targetOptions = null)

Parameters

functionDeclaration string
awaitPromise bool
options CallFunctionOptions
targetOptions ContextTargetOptions

Returns

Task<TResult>

Type Parameters

TResult

EvaluateAsync(string, bool, EvaluateOptions?, ContextTargetOptions?)

public Task<EvaluateResult.Success> EvaluateAsync(string expression, bool awaitPromise, EvaluateOptions? options = null, ContextTargetOptions? targetOptions = null)

Parameters

expression string
awaitPromise bool
options EvaluateOptions
targetOptions ContextTargetOptions

Returns

Task<EvaluateResult.Success>

EvaluateAsync<TResult>(string, bool, EvaluateOptions?, ContextTargetOptions?)

public Task<TResult?> EvaluateAsync<TResult>(string expression, bool awaitPromise, EvaluateOptions? options = null, ContextTargetOptions? targetOptions = null)

Parameters

expression string
awaitPromise bool
options EvaluateOptions
targetOptions ContextTargetOptions

Returns

Task<TResult>

Type Parameters

TResult

GetRealmsAsync(GetRealmsOptions?)

public Task<IReadOnlyList<RealmInfo>> GetRealmsAsync(GetRealmsOptions? options = null)

Parameters

options GetRealmsOptions

Returns

Task<IReadOnlyList<RealmInfo>>