This code is for autologing in web site
but, the line
Return this error:
when I run the jar file it works perfectly, but the exe returns that error
B4X:
Sub recarga_Tick
Try
we1.InitializeNewInstance("javafx.scene.web.WebEngine",Null)
doc1.InitializeStatic("org.w3c.dom.Document")
temp1 = wv1
we1 = temp1.RunMethod("getEngine",Null)
we1.RunMethod("load",Array As Object(startPage1))
recarga.Enabled = False
Catch
Log(LastException)
End Try
End Sub
Sub wv1_PageFinished (Url As String)
Try
js1.enginePut("doc",we1.RunMethod("getDocument",Null))''Returns error in "Build Standalone Package"
js1.evalString("var t = doc.body.innerHTML;")
js1.evalString("doc.getElementById('LoginPh').value = 'user';")
js1.evalString("doc.getElementById('PasswordPh').value = 'password';")
js1.evalString("doc.getElementById('btnlogin').click();")
js1.evalString("doc.getElementById('CORRUGATORLINEUPDRYEND').click();")
js1.evalString("var tt = doc.getElementsByTagName('frame')[0].contentWindow.getElementsByTagName('frame')[0].contentWindow;")
'get font code of web site
codigo = js1.engineGet("t")
but, the line
B4X:
js1.enginePut("doc",we1.RunMethod("getDocument",Null))''Returns error in "Build Standalone Package"
Return this error:
when I run the jar file it works perfectly, but the exe returns that error