|
Rank: Member Groups: Member
Joined: 9/8/2021 Posts: 10
|
Hi admin, I am following some of your code samples but my code always returns an error. The equivalent code runs fine in the DOM, here's the code I've adapted to. Quote: Dim jsCode As String = "(function () { var elements = document.getElementsByTagName('" & tagname & "'); for (var i = 0; i < elements.length; i++) { if(elements[i].className =""" & s(1) & """){ elements[i].click(); return; } } })();" webView.EvalScript(jsCode) An exception of type 'EO.WebBrowser.JSException' occurred in EO.Base.dll but was not handled in user code , line 9, col 49 - 49: Uncaught SyntaxError: Invalid or unexpected token If there is a handler for this exception, the program may be safely continued.Am I missing something?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This means there is something wrong with the script code you are trying to run. You can copy and paste the JavaScript into Chrome's debug console to debug it.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 9/8/2021 Posts: 10
|
Hi, Thank you. This is difficult. it seems too sophisticated to me. I will try some other solutions.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
You do need to be familiar with web page basics and JavaScript in order to use our product effectively. We wish you best luck with other solutions.
|
|