awesomium获取ElementById VB.NET

时间:2014-09-17 10:17:51

标签: vb.net getelementbyid awesomium

请帮我使用VB.NET getElementById

Dim document = CType(WebControl1.ExecuteJavascriptWithResult("document"), Awesomium.Core.JSObject)

Dim myele = document.getElementById("ask-question-link") 

我已经使用过这段代码,但是它说,getElementById不是Awesomium.Core.JSObject的成员请帮帮我

PS:我正在尝试使用VB.NET代码 它适用于C#

这是C#代码正常工作

dynamic document = (Awesomium.Core.JSObject)webControl1.ExecuteJavascriptWithResult("document");
var myele = document.getElementById("ask-question-link");

1 个答案:

答案 0 :(得分:1)

Dim Question As String = WebControl1.ExecuteJavascriptWithResult(" document.getElementById(' ask-question-link')")