Class V141JavaScript
Class containing the JavaScript implementation for version 141 of the DevTools Protocol.
public class V141JavaScript : JavaScript- Inheritance
- 
      
      
      V141JavaScript
- Inherited Members
Constructors
V141JavaScript(RuntimeAdapter, PageAdapter)
Initializes a new instance of the V141JavaScript class.
public V141JavaScript(RuntimeAdapter runtime, PageAdapter page)Parameters
- runtimeRuntimeAdapter
- The DevTools Protocol adapter for the Runtime domain. 
- pagePageAdapter
- The DevTools Protocol adapter for the Page domain. 
Exceptions
- ArgumentNullException
- If - runtimeor- pageare null.
Methods
AddBinding(string)
Adds a binding to a specific JavaScript name.
public override Task AddBinding(string name)Parameters
- namestring
- The name to which to bind to. 
Returns
- Task
- A task that represents the asynchronous operation. 
AddScriptToEvaluateOnNewDocument(string)
Adds a JavaScript snippet to evaluate when a new document is opened.
public override Task<string> AddScriptToEvaluateOnNewDocument(string script)Parameters
- scriptstring
- The script to add to be evaluated when a new document is opened. 
Returns
- Task<string>
- A task that represents the asynchronous operation. The task result contains the internal ID of the script. 
DisablePage()
Asynchronously disables the Page domain in the DevTools Protocol.
public override Task DisablePage()Returns
- Task
- A task that represents the asynchronous operation. 
DisableRuntime()
Asynchronously disables the Runtime domain in the DevTools Protocol.
public override Task DisableRuntime()Returns
- Task
- A task that represents the asynchronous operation. 
EnablePage()
Asynchronously enables the Page domain in the DevTools Protocol.
public override Task EnablePage()Returns
- Task
- A task that represents the asynchronous operation. 
EnableRuntime()
Asynchronously enables the Runtime domain in the DevTools Protocol.
public override Task EnableRuntime()Returns
- Task
- A task that represents the asynchronous operation. 
RemoveBinding(string)
Removes a binding from a specific JavaScript name.
public override Task RemoveBinding(string name)Parameters
- namestring
- The name to which to remove the bind from. 
Returns
- Task
- A task that represents the asynchronous operation. 
RemoveScriptToEvaluateOnNewDocument(string)
Removes a JavaScript snippet from evaluate when a new document is opened.
public override Task RemoveScriptToEvaluateOnNewDocument(string scriptId)Parameters
- scriptIdstring
- The ID of the script to be removed. 
Returns
- Task
- A task that represents the asynchronous operation.