Show / Hide Table of Contents

Class JavascriptEngine

Javascript scraper and executor

Inheritance
System.Object
JavascriptEngine
Implements
IScraper
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 : IScraper

Constructors

| Improve this Doc View Source

JavascriptEngine()

Constructor

Declaration
public JavascriptEngine()

Properties

| Improve this Doc View Source

Document

String containing scripts to be executed

Declaration
public string Document { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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 Source

Add(IDocument)

Adds scripts to document

Declaration
public int Add(IDocument document)
Parameters
Type Name Description
IDocument document
Returns
Type Description
System.Int32
| Improve this Doc View Source

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>
| Improve this Doc View Source

AddScripts(IDocument)

Same as Add method

Declaration
public int AddScripts(IDocument document)
Parameters
Type Name Description
IDocument document
Returns
Type Description
System.Int32
| Improve this Doc View Source

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

Implements

IScraper
  • Improve this Doc
  • View Source
Back to top Generated by DocFX