Im automating a form with excel to autofill and submit. I am able to fill my form but I can't get the submit button to work. I've tried about 50 different types of code and I cant get it to work. Could you guys help me figure out how to get it to submit?
This is the HTML code for the button
field HTML properties Below
<input type="button" value="submit" class="button" onclick="submitIt()">
Here are 2 that I though would work but didnt
1st-- this one works but it gives me an error on the page which is weird. basically the error comes back as an incorrect company. but if i comment it out and fill the form and manually click the button it submits just fine.
IE.document.getElementsByClassName("button")(0).Click
2nd - I thought this worked at one point but i cant seem to get it to work now.
Set doc = IE.document
Set div = IE.document.getElementByClassnName("button")
div.FireEvent "submitIt"