How to find a button with "value" in html page (Webbrowser - Delphi) -
i have html page have 3 forms 3 submit buttons . buttons have no name have value :
<input type="submit" value="login">
how can find button value , click on it ?
thanks
procedure tform1.button1click(sender: tobject); var ovelements: olevariant; i: integer; begin ovelements := webbrowser1.oleobject.document.forms.item(0).elements; := 0 (ovelements.length - 1) if (ovelements.item(i).tagname = 'input') , (ovelements.item(i).type = 'submit') , (ovelements.item(i).value = 'login') ovelements.item(i).click; end;
Comments
Post a Comment