I am getting js script from remote html with using HtmlAgilityPack as below;
....
string JsVars = _HtmlDocument.DocumentNode.SelectSingleNode("//script[contains(text(), 'blablaa')]").InnerText
JsVars returns as below;
var js_var1 = "blablaa";
var js_var2 = "hops";
is there anyway to get value of js_var1 or js_var2 values after Evulate jsVars with Jurassic?
var engine = new Jurassic.ScriptEngine();
var result = engine.Evaluate(_JsVars);
You can try this way :
[.NET fiddle demo]
Reference : Jurassic Documentation - Accessing and modifying global variables