请帮我使用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");
答案 0 :(得分:1)
Dim Question As String = WebControl1.ExecuteJavascriptWithResult(" document.getElementById(' ask-question-link')")