LahiruJ
LahiruJ

Reputation: 53

awesomium get ElementById VB.NET

Please help me to getElementById using VB.NET

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

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

I have used this code but it says, getElementById is not a member of Awesomium.Core.JSObject Please help me

PS: Im trying for VB.NET code Its working well for C#

Here is the C# code working

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

Upvotes: 0

Views: 1885

Answers (1)

Jason Shannon
Jason Shannon

Reputation: 51

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

Upvotes: 2

Related Questions