excel - VBA javascript onlick -


i been trying adapt code working no success. need submit guest following webpage:

<div class="lotusbtncontainer"> <input type="submit" class="lotusbtn" value="access guest"onclick="javascript:asguest();"> <input type="submit" class="lotusbtn" value="log in , access" onclick="javascript:asuser();"> <span class="lotusaction"> &nbsp;</span> </div> 

this have far, since button doesn't have id i'm not sure how address it:

dim intexpl object set intexpl = createobject("internetexplorer.application") intexpl       .navigate "webpage url"       .visible = true       until intexpl.readystate = 4 loop     '.document.getelementsbyname("subaction")(0).click end end sub 

this worked.

dim intexpl object

    set intexpl = createobject("internetexplorer.application")       intexpl           .navigate "https://febontap.victoria.ibm.com/forms/anon/org/notify/guestselection.html?originatingurl=..%2f..%2f..%2flanding%2forg%2fapp%2ff373ed45-3637-4662-8fb8-a40a0bd621db%2flaunch%2findex.html%3fform%3df_form1&guest=..%2fapp%2ff373ed45-3637-4662-8fb8-a40a0bd621db%2flaunch%2findex.html%3fform%3df_form1&user=..%2f..%2f..%2fsecure%2forg%2fapp%2ff373ed45-3637-4662-8fb8-a40a0bd621db%2flaunch%2findex.html%3fform%3df_form1"           .visible = true           until intexpl.readystate = 4     loop       .document.getelementsbyclassname("lotusbtn")(0).click        end 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -