B4J Question WebView Manipulate

astronald

Active Member
Licensed User
Longtime User
can i manipulate web control as vb6 ?

Webview.Document.GetElementByID("txtname").value = "nameuser"
Webview.Document.GetElementByID("txtpass").value = "pass"
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hello steve,

DO you have ideia how get the elements of a div? because in this line below I just get "peer"and "peertype"


Dim JO As JavaObject = TJO.RunMethod("getElementById",Array As Object("mydivOnHtml"))



upload_2019-3-28_21-37-31.png
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
Hi Alberto,

It's working here for me, is the ID unique on the page? Can you post the HTML?
 
Upvote 0

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hello Steve,
This is the page, is to get the balance of Oyster Card in London.

I put the screen (the part in red box) and the html code. Note I just change the number of cards for 010101, 020202, 03030303)

Thank you

ALberto Iglesias
 

Attachments

  • divhtml.txt
    16.5 KB · Views: 192
  • Screen Shot 03-29-19 at 07.20 AM.PNG
    Screen Shot 03-29-19 at 07.20 AM.PNG
    104.2 KB · Views: 181
Upvote 0
Top