Tell me how in the vbs script to make a click on the "Login" button
Here is the code from the login page:
<div id="divLogin"> <table> <tr><th style="width:50%; text-align:right">Имя пользователя</th><td style="width:50%"><input id="tb_username" onkeypress="RestrikeSymbolInput(event,'@\\')" style="width:98%" /></td></tr> <tr><th style="text-align:right">Пароль</th><td><input id="tb_password" type="password" style="width:98%" onkeypress="if((event.keyCode ? event.keyCode : event.which)==13) LoginClickAction();" /></td></tr> <tr><th style="text-align:right">Домен</th><td><select id="ddl_domains" style="width:98%" ></select></td></tr> <tr><td colspan="2" style="text-align:left"><input type="checkbox" id="chb_persistent" /><label for="persistent" onclick = "document.all.chb_persistent.checked = !document.all.chb_persistent.checked">Сохранять пароль</label></td></tr> <tr><th></th><td><input class="button_default" type="button" value="Вход" onclick="LoginClickAction()" /> <input class="button_default" type="button" value="Отмена" onclick="hideLogin()" /></td></tr> </table> </div>
Fill in the login and password, but it turns out to send them there, my code:
Dim login_field : Set login_field = oIE.document.getElementById("tb_username") Dim password_field : Set password_field = oIE.document.getElementById("tb_password") login_field.value="123" ' логин password_field.value="123" ' пароль