How to 'click' 'link' on HTML/Java based page?

andyjbrommel

New Member
Joined
May 26, 2011
Messages
2
Code:
div style= "visibility: hidden" 
 
   a id="myForm:lnk_enter" href="#" shape="rect" *******="if(typeof jsfcljs == 'function'){jsfcljs(document.forms['myForm'],{'myForm:lnk_enter':'myForm:lnk_enter'},'');}return false" class="lnk_enter"
 
       Enter
 
   /a
 
/div

HTML source code of the 'element' I'm trying to interact with. '<' removed so that you could actually see the text.



I am struggling mightily with this one. I am somewhat familiar with interacting with basic HTML using VBA. Normally if I want to 'click' a button I just find the input element and identify it by the ID and use the .click command. The above however is not an input element and I have struggled trying to figure out how to interact with it.

Basically this is a 'submit' button within a form that when clicked will refresh the screen based on the commands given by the user.

Things I have surmised...

1. This element appears to be 'hidden'
2. This element is within a form titled 'MyForm'
3. Java is in someway shape or form invovled

Things I have tried...

1. objIE.document.all("myForm:lnk_enter").Click
2. objIE.document.form("MyForm").all("lnk_enter").Click

Any suggestions?
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,603
Messages
6,179,855
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top