Webbrowser click on image button by class

Thanks for read my question.

I have this button in website page, i need click using twebbrowser.

<td class="Send"><input type="image" src="http://imageofbuton.com/imagemybuttonexample.gif" class="send-button"></td>

Open in new window


How i do to click using the "CLASS" of the button, because dont have name or text, only image and class.

Any solution to click in this button?

Thanks in advance.
Suzy1985Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
You  can put this code wherever you prefer
I've put it in NavigateComplete to be sure to have a document loaded

procedure TForm1.WebBrowser1NavigateComplete2(ASender: TObject; const pDisp: IDispatch; var URL: OleVariant);
var
  ovElements: OleVariant;
  i: Integer;
begin
  ovElements := WebBrowser1.OleObject.Document.all;
  for i := 0 to (ovElements.Length - 1) do
    if (ovElements.item(i).className = 'send-button') then //be aware that it must be written with the exact case className
      ovElements.item(i).Click;
end;

If you have more than one element with that class you can filter more using other elements tags ('id', 'name' and so on)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Suzy1985Author Commented:
Good job, Thank you!

Merry Christmas and Happy Holidays.  ;)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.