Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How to automatically click thru Visual Basicusing InternetExplorer.Application when HTML statements are following

$
0
0

When I saw the source of HTML I found these statements:

<input type='hidden' name='section' id='section' value='EQ'/>
<input type="image" class="getdata-button" src="/common/images/btn-get-data.gif" onclick="validateInput()" />

Now, I am stuck because there is no "id" given  in the above statement for the input "getdate-button". So I couldn't write a statement like:

oBrowser.Document.GetElementbyID("get").Click(0)

to automatically click the getdata-button in above HTML statements. So in the above case (If HTML statements are as above) then how do I automatically click the getdata-button using InternetExplorer.Application facility?

If the above statement was:

<input type="image" onclick="loadindicesdata()" class="getdata-button" src="/common/images/btn-get-data.gif" id="get"/>

I can automate a click by following statement:

oBrowser.Document.GetElementbyID("get").Click(0)

because then I could have got access to that button using its "id". But, in the above case an "id" is not being provided. So I am stuck in getting access to that button. Please help.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>