I'm making an C# Windows Form Application with an Awesomium webbrowser inside it.
I'm trying to get some rows from an table and parse them to an array. The JSPart is running inside the browser fine.
Here's the code that i use inside C#:
JSObject villageRows = view.ExecuteJavascriptWithResult("document.getElementById(\"production_table\").getElementsByTagName(\"tbody\")[0].getElementsByTagName(\"tr\");");
if (villageRows == null)
{
return;
}
That returns now 2 tr
rows inside Chrome, but that will be more later, so i was hoping that i could loop through the elements with an foreach, but i can't find any way to loop through it.
Does anybody got any idea?