Class JavascriptEngine
Javascript scraper and executor
Inheritance
System.Object
    JavascriptEngine
  Implements
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: BrowseSharp.Javascript
Assembly: BrowseSharp.dll
Syntax
public class JavascriptEngine : IScraperConstructors
| Improve this Doc View SourceJavascriptEngine()
Constructor
Declaration
public JavascriptEngine()Properties
| Improve this Doc View SourceDocument
String containing scripts to be executed
Declaration
public string Document { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
GlobalVariables
Global variables that may be used in script execution
Declaration
public List<string> GlobalVariables { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<System.String> | 
Methods
| Improve this Doc View SourceAdd(IDocument)
Adds scripts to document
Declaration
public int Add(IDocument document)Parameters
| Type | Name | Description | 
|---|---|---|
| IDocument | document | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
AddAsync(IDocument)
Adds scripts to document asynchronously
Declaration
public Task<int> AddAsync(IDocument document)Parameters
| Type | Name | Description | 
|---|---|---|
| IDocument | document | 
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<System.Int32> | 
AddScripts(IDocument)
Same as Add method
Declaration
public int AddScripts(IDocument document)Parameters
| Type | Name | Description | 
|---|---|---|
| IDocument | document | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Execute(String)
Method for executing javascript command, uses document
Declaration
public object Execute(string command)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | command | 
Returns
| Type | Description | 
|---|---|
| System.Object |