delphi - DCEF3 TChromium : iterate the DOM and click buttons / fill inputs -


because internet explorer dead, i'm in (long) process replace twebbrowser tchromium in applications.

with twebbrowser had complete , documented interface access dom through ihtmlelement interface.

since dcef3 documentation inexistent, i'm searching examples of how (if possible) iterate , manipulate dom in tchromium :

  • select / element's html source
  • click on button
  • fill input
  • focus control

is there native interface it, or way using javascript directly ?

any appreciated.

thanks in advance !

realized through js code (fill input):

if assigned(chromium.browser) , assigned(chromium.browser.mainframe) begin jscode:= 'document.forms[0].quick_email.value="email";'; chromium.browser.mainframe.executejavascript(jscode, 'about:blank', 0);  jscode:= 'document.forms[0].quick_pass.value="pass";'; chromium.browser.mainframe.executejavascript(jscode, 'about:blank', 0);  jscode:= 'document.forms[0].submit();'; chromium.browser.mainframe.executejavascript(jscode, 'about:blank', 0); end; 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -