Class ScriptModule
- Namespace
- OpenQA.Selenium.BiDi.Modules.Script
- Assembly
- WebDriver.dll
public sealed class ScriptModule : Module
- Inheritance
-
ScriptModule
- Inherited Members
-
Constructors
ScriptModule(Broker)
public ScriptModule(Broker broker)
Parameters
broker
Broker
Methods
AddPreloadScriptAsync(string, AddPreloadScriptOptions?)
public Task<PreloadScript> AddPreloadScriptAsync(string functionDeclaration, AddPreloadScriptOptions? options = null)
Parameters
functionDeclaration
string
options
AddPreloadScriptOptions
Returns
- Task<PreloadScript>
CallFunctionAsync(string, bool, Target, CallFunctionOptions?)
public Task<EvaluateResult.Success> CallFunctionAsync(string functionDeclaration, bool awaitPromise, Target target, CallFunctionOptions? options = null)
Parameters
functionDeclaration
string
awaitPromise
bool
target
Target
options
CallFunctionOptions
Returns
- Task<EvaluateResult.Success>
CallFunctionAsync<TResult>(string, bool, Target, CallFunctionOptions?)
public Task<TResult?> CallFunctionAsync<TResult>(string functionDeclaration, bool awaitPromise, Target target, CallFunctionOptions? options = null)
Parameters
functionDeclaration
string
awaitPromise
bool
target
Target
options
CallFunctionOptions
Returns
- Task<TResult>
Type Parameters
TResult
EvaluateAsync(string, bool, Target, EvaluateOptions?)
public Task<EvaluateResult.Success> EvaluateAsync(string expression, bool awaitPromise, Target target, EvaluateOptions? options = null)
Parameters
expression
string
awaitPromise
bool
target
Target
options
EvaluateOptions
Returns
- Task<EvaluateResult.Success>
EvaluateAsync<TResult>(string, bool, Target, EvaluateOptions?)
public Task<TResult?> EvaluateAsync<TResult>(string expression, bool awaitPromise, Target target, EvaluateOptions? options = null)
Parameters
expression
string
awaitPromise
bool
target
Target
options
EvaluateOptions
Returns
- Task<TResult>
Type Parameters
TResult
GetRealmsAsync(GetRealmsOptions?)
public Task<GetRealmsResult> GetRealmsAsync(GetRealmsOptions? options = null)
Parameters
options
GetRealmsOptions
Returns
- Task<GetRealmsResult>
OnMessageAsync(Action<MessageEventArgs>, SubscriptionOptions?)
public Task<Subscription> OnMessageAsync(Action<MessageEventArgs> handler, SubscriptionOptions? options = null)
Parameters
handler
Action<MessageEventArgs>
options
SubscriptionOptions
Returns
- Task<Subscription>
OnMessageAsync(Func<MessageEventArgs, Task>, SubscriptionOptions?)
public Task<Subscription> OnMessageAsync(Func<MessageEventArgs, Task> handler, SubscriptionOptions? options = null)
Parameters
handler
Func<MessageEventArgs, Task>
options
SubscriptionOptions
Returns
- Task<Subscription>
OnRealmCreatedAsync(Action<RealmInfo>, SubscriptionOptions?)
public Task<Subscription> OnRealmCreatedAsync(Action<RealmInfo> handler, SubscriptionOptions? options = null)
Parameters
handler
Action<RealmInfo>
options
SubscriptionOptions
Returns
- Task<Subscription>
OnRealmCreatedAsync(Func<RealmInfo, Task>, SubscriptionOptions?)
public Task<Subscription> OnRealmCreatedAsync(Func<RealmInfo, Task> handler, SubscriptionOptions? options = null)
Parameters
handler
Func<RealmInfo, Task>
options
SubscriptionOptions
Returns
- Task<Subscription>
OnRealmDestroyedAsync(Action<RealmDestroyedEventArgs>, SubscriptionOptions?)
public Task<Subscription> OnRealmDestroyedAsync(Action<RealmDestroyedEventArgs> handler, SubscriptionOptions? options = null)
Parameters
handler
Action<RealmDestroyedEventArgs>
options
SubscriptionOptions
Returns
- Task<Subscription>
OnRealmDestroyedAsync(Func<RealmDestroyedEventArgs, Task>, SubscriptionOptions?)
public Task<Subscription> OnRealmDestroyedAsync(Func<RealmDestroyedEventArgs, Task> handler, SubscriptionOptions? options = null)
Parameters
handler
Func<RealmDestroyedEventArgs, Task>
options
SubscriptionOptions
Returns
- Task<Subscription>
RemovePreloadScriptAsync(PreloadScript, RemovePreloadScriptOptions?)
public Task RemovePreloadScriptAsync(PreloadScript script, RemovePreloadScriptOptions? options = null)
Parameters
script
PreloadScript
options
RemovePreloadScriptOptions
Returns
- Task