faustf Posted January 6, 2015 Share Posted January 6, 2015 hi guy i try to create a script for automatic login in site this is a site www.runner.it but not go i try to write this code Global $oIE = _IECreate("http://www.runner.it/static/index.php?err=1",0) Local $oForm = _IEFormGetObjByName($oIE, "Runner.it") Local $oText = _IEFormElementGetObjByName($oForm, "login") _IEFormElementSetValue($oText, "Hey! This works!") someone have somthing idea?? thankz Link to comment Share on other sites More sharing options...
Danp2 Posted January 6, 2015 Share Posted January 6, 2015 You've got some of the names incorrect. Try "Login" for the form name and "username" for the element name. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
faustf Posted January 6, 2015 Author Share Posted January 6, 2015 yea is good thankzzz alot Link to comment Share on other sites More sharing options...
faustf Posted January 6, 2015 Author Share Posted January 6, 2015 other questions why if i use this dont clik button??? $oButton=_IEGetObjById($oForm,"entra") _IEAction ($oButton, "click") Link to comment Share on other sites More sharing options...
Danp2 Posted January 6, 2015 Share Posted January 6, 2015 Did you try: _IEFormSubmit($oForm) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
faustf Posted January 6, 2015 Author Share Posted January 6, 2015 not go Link to comment Share on other sites More sharing options...
Danp2 Posted January 6, 2015 Share Posted January 6, 2015 Instead of just stating that it doesn't work, it would be helpful if you provided a more detailed response. Were there any additional details or error messages given in the Scite output window? When I run the following, it appears to submit the form as expected: #include <IE.au3> Local $oIE, $oForm, $oText $oIE = _IECreate("http://www.runner.it/static/index.php?err=1",0) $oForm = _IEFormGetObjByName($oIE, "Login") $oText = _IEFormElementGetObjByName($oForm, "username") _IEFormElementSetValue($oText, "demo") $oText = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($oText, "demo") _IEFormSubmit($oForm) Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
faustf Posted January 6, 2015 Author Share Posted January 6, 2015 (edited) for me dont go no remaning in run a program with demo demo in input box and explorer opened but not have error specific like if you dont have this command _IEFormSubmit($oForm) Edited January 6, 2015 by faustf Link to comment Share on other sites More sharing options...
Danp2 Posted January 6, 2015 Share Posted January 6, 2015 Perhaps you are running into the recent issue where an update from MS resulted in lots of broken scripts. You can search the forum to locate details on the specific update. For more specific advice, you need to provide more details. You have yet to tell us your OS, IE version, Autoit version, etc. Also, run the script in Scite and then post the results from the Output window. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
jdelaney Posted January 6, 2015 Share Posted January 6, 2015 (edited) You can use _ieaction to click on the 'span', or button, that performs the submit. Edited January 6, 2015 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
faustf Posted January 6, 2015 Author Share Posted January 6, 2015 i use win 7 ultimate sp1 in virtual box with ie 11.0.9600.17501 scite Version 1.79 ,autoit v3.3.6.1 output window is blank not have error message Link to comment Share on other sites More sharing options...
Danp2 Posted January 6, 2015 Share Posted January 6, 2015 You are using a very old version of Autoit. Is there a reason that you haven't upgraded to a newer version? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
faustf Posted January 7, 2015 Author Share Posted January 7, 2015 because if go , why change , but if problem is upgrade i will try to change and soon a tell you result thankz for the moment Link to comment Share on other sites More sharing options...
faustf Posted January 7, 2015 Author Share Posted January 7, 2015 yes with new version the script go i dont use new version for some reason 1. i have a program big and long , when i run in new version dont go (now not remember the error ) 2. scite i dont know why , when i write _IEFormGetObjByName not change color in blu Link to comment Share on other sites More sharing options...
Danp2 Posted January 7, 2015 Share Posted January 7, 2015 Good luck. Maybe someone else will jump in here with some ideas for you. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
AutID Posted January 7, 2015 Share Posted January 7, 2015 (edited) _IEFormGetObjByName go on latest stable and beta version of autoit. Probably you have some error in writing. Edit: this works for me #include <IE.au3> Local $oIE, $oForm, $oText $oIE = _IECreate("http://www.runner.it/static/index.php?err=1",0) $oForm = _IEFormGetObjByName($oIE, "Login") $oText = _IEFormElementGetObjByName($oForm, "username") _IEFormElementSetValue($oText, "demo") $oText = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($oText, "demo") _IEFormSubmit($oForm) Edited January 7, 2015 by AutID https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Danp2 Posted January 7, 2015 Share Posted January 7, 2015 @AutID, Did you test it With Autoit v3.3.6.1? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
AutID Posted January 7, 2015 Share Posted January 7, 2015 @Danp2, no and I have no intentions to do that. Tested latest stable and beta as I am saying on post 16. https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Danp2 Posted January 7, 2015 Share Posted January 7, 2015 @AutID, me either. I was just wondering since I had already posted similar code on post 7. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now