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
Post a Comment