faustf Posted June 21, 2015 Share Posted June 21, 2015 hi guy i have script for insert in a page site , some data , but when arrive at end and click ok button , the site answerme like if not insert nothing , if i rewrite the same word go good .expandcollapse popup$oIE = _IECreate("https://www2.subito.it/aif#insert", 0, 1, 1, 1) _IELoadWait($oIE) ;SCEGLI LA CATEGORIA $oForm = _IEGetObjById($oIE, "aiform") $oSelect = _IEFormElementGetObjByName($oForm, "category") _IEAction($oSelect, "click") ;_IEFormElementOptionSelect($oSelect, "NAUTICA", 1, "byText") ;TITOLO DELL ANNUNCIO $oSelect = _IEFormElementGetObjByName($oForm, "subject") _IEFormElementSetValue($oSelect, "Barca a motore");, 1, "byText") ;TESTO DELL ANNUNCIO $oSelect = _IEFormElementGetObjByName($oForm, "body") _IEFormElementSetValue($oSelect, "bellissima barca a motore 12 metri jovovovic come nuova solo da affondare");, 1, "byText") ;NOME $oSelect = _IEFormElementGetObjByName($oForm, "name") _IEFormElementSetValue($oSelect, "don peppone");, 1, "byText") ;NUMERO DI TELEFONO $oSelect = _IEFormElementGetObjByName($oForm, "phone") _IEFormElementSetValue($oSelect, "3356963031");, 1, "byText") ;PREZZO $oSelect = _IEFormElementGetObjByName($oForm, "price") _IEFormElementSetValue($oSelect, "100");, 1, "byText") ;NUMERO DI TELEFONO NON VISIBILE $oSelect = _IEFormElementGetObjByName($oForm, "phone_hidden") _IEAction($oSelect, "focus") _IEAction($oSelect, "click") ;CCETTA LA POLICY DI PUBBLICAZIONE $oSelect = _IEFormElementGetObjByName($oForm, "tos") _IEAction($oSelect, "focus") _IEAction($oSelect, "click") ;CLICCA SUL BOTTONE INVIA $oSelect = _IEGetObjById ($oForm, "btnAiSubmit") _IEAction($oSelect, "focus") _IEAction($oSelect, "click")some one can help me or have some suggestions ?? thankz Link to comment Share on other sites More sharing options...
Shane0000 Posted June 22, 2015 Share Posted June 22, 2015 Have you tried: _IEFormSubmit($oForm) Link to comment Share on other sites More sharing options...
faustf Posted June 23, 2015 Author Share Posted June 23, 2015 with _IEFormSubmit($oForm) the page answer me with generic error 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