Jump to content
Sign in to follow this  
faustf

_ie problem with site

Recommended Posts

faustf

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 .

$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

 

Share this post


Link to post
Share on other sites
faustf

with      _IEFormSubmit($oForm)   the  page  answer me  with generic error 

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×