venkin81 Posted September 21, 2011 Share Posted September 21, 2011 Hi, I want to test a web application. I am able to open the web application and provide userid and password and submit the page. After submitting the page i want to click on any button/hyperlink and proceed further. Anyone kindly help me. Thanks in advance Venkin81 Link to comment Share on other sites More sharing options...
Developers Jos Posted September 21, 2011 Developers Share Posted September 21, 2011 pls use the correct forum when posting your questions. moved, Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 21, 2011 Share Posted September 21, 2011 What browser are you using? It makes a difference as to how the problem is tackled. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
icu Posted September 22, 2011 Share Posted September 22, 2011 (edited) Dear venkin81, Firstly I would recommend you read "Learning to Script with AutoIt V3" and download SciTE for AutoIt. Press F1 and look at everything in the Index that starts with "_IE" for example "_IECreate" and experiment from there. If you've done this and have more questions please post. Kind regards, icu Edited September 22, 2011 by icu Link to comment Share on other sites More sharing options...
venkin81 Posted September 23, 2011 Author Share Posted September 23, 2011 What browser are you using? It makes a difference as to how the problem is tackled.IE 6 Link to comment Share on other sites More sharing options...
venkin81 Posted September 23, 2011 Author Share Posted September 23, 2011 Dear venkin81, Firstly I would recommend you read "Learning to Script with AutoIt V3" and download SciTE for AutoIt. Press F1 and look at everything in the Index that starts with "_IE" for example "_IECreate" and experiment from there. If you've done this and have more questions please post. Kind regards, icuThank you icu,I have basic knowledge on auto it.Developed script to do health check-up of all our web application.It will open ie using _iecreate and read form object and give user id and password and click submit. then I will check with form title with winactive. Till this point my script is working fine. I want to click on the hyper link/button in the page that comes after login Thanks in advance Venkin81 Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 23, 2011 Share Posted September 23, 2011 IE 6 That's your problem. Upgrade. IE 6 should be burnt on a funeral pyre. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
venkin81 Posted September 25, 2011 Author Share Posted September 25, 2011 Please find the code that i used, i will use correct login id and password forLocal $sUser = "my login id"Local $sPass = "my password" My requirement is after login to gmail i want click on any of the button/hyper link(Ex: check Mail/Compose), some could you please help with me code sample. Thanks in advance #include<IE.au3>Local $oUser, $oPass, $oSubmitLocal $sUser = "my login id"Local $sPass = "my password"Local $url = "www.gmail.com"Local $oIE = _IECreate($url, 1)_IELoadWait($oIE)$oInputs = _IETagNameGetCollection($oIE, "input")for $oInput in $oInputs if $oInput.type = "text" And $oInput.name = "Email" Then $oUser = $oInput if $oInput.type = "password" And $oInput.name = "Passwd" Then $oPass = $oInput if $oInput.type = "submit" And $oInput.name = "signIn" Then $oSubmit = $oInput if isObj($oUser) And isObj($oPass) And isObj($oSubmit) then exitloopNext$oUser.value = $sUser$oPass.value = $sPass_IEAction($oSubmit, "click")_IELoadWait($oIE) Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 25, 2011 Share Posted September 25, 2011 Do not discuss any of the following:SPAM tools including instant messenger or forum auto-posters. This includes forum or site auto-login methods. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Recommended Posts