Hi EO,
We used EO version is 16.1.17.0.
There is a strange problem, cannot retrieve DOM, null exception thrown.
This is how we call javascript function from .NET,
Code: C#
private void InvokeJS(string functionName, object[] parameters)
{
try
{
if (_browser.CanEvalScript)
{
Console.WriteLine("Step 1");
JSObject jsObj = _browser.GetDOMWindow();
Console.WriteLine("Step 2");
JSFunction functions = (JSFunction)_browser.EvalScript(functionName);
Console.WriteLine("Step 3");
functions.Invoke(jsObj, parameters);
}
}
catch (Exception ex)
{
Console.WriteLine("An error has occurred: " + ex.ToString());
}
}
In certain sites this function print at "Step 1" after without print "Step 2", look like while loop at GetDOMWindow() , and without thrown exception ex.
Is this a known issue?
Thanks
Best Regards,
Swatchqaws