javascript - Autoit Script for populating username and password and submit by validating them automatically -


i don't have idea autoit scripting, have 1 autoit script run automatically clicking 1 button in tool. 1 webpage opened , need enter username , password , submitting login account. here have task automate process of entering username , password , clicking submit button. need read credentials tool , end process automatically.

i successful in reading credentials tool facing issue in auto submitting form.

now when webpage opening username , password populating automatically, please me click on submit button automatically validating username , password field in autoit scripting.

below code have. please suggest syntax aut submitting form validating username , password fields.

    ; ------------------ ; handle login here! ; change_me ; ------------------ local $o_form = _ieformgetobjbyname ($oie, "logindata")  local $o_user = _ieformelementgetobjbyname ($o_form, "j_username") ;send("{tab}") local $o_password = _ieformelementgetobjbyname ($o_form, "j_password") ;send("{tab}") local $o_signin = _ieformelementgetobjbyname ($o_form, "submit") ;send("{enter}")  ; set field values , submit form _ieformelementsetvalue ($o_user, $targetusername) _ieformelementsetvalue ($o_password, $targetpassword) _ieaction ($o_signin, "click") 

try piece of code , change values.

#include<ie.au3> $susername = "username" $spassword = "password" $surl = "http://www5.comunio.de/" $oie = _iecreate($surl, 0, 1, 0, 1) sleep(2000) $ohwnd = _iepropertyget($oie, "hwnd") winsetstate($ohwnd, "", @sw_maximize) $oform = _ieformgetcollection($oie, 0) $ousername = _ieformelementgetobjbyname($oform, 'id_logon_usernametext') $opassword = _ieformelementgetobjbyname($oform, "id_logon_passwordtext") _ieformelementsetvalue($ousername, $susername) _ieformelementsetvalue($opassword, $spassword) _ieformsubmit($oform) 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -