Webbrowser click button or link with no name and DELPHI ID

Asked

Viewed 161 times

0

Hello guys I know that to click this button here

input type="Submit" id="btnSubmit" name="advance" value="Advance " onclick="Return onsubmit();">

if using this code

webBrowser1.OleObject.Document.all.Item('next', 0). click;

more when the button or link has no name or id, what I do in this case here

a href="javascript:void(0)" class="button-default" onclick="calculates()">Calculate"

Can someone help me on this case ?

  • You should already have solution in another(s) question(s) with similar title, but you can search for element "a" by "Parent" from it... Parent is the parent element, where the link or button is contained.

  • http://answall.com/a/134673/14539

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.