Jump to content

I Cannot reach a text area and a button on the same page

Recommended Posts

Hello Everyone,

Hoping someone can help me,

I am totally stuck on this problem,

I cannot reach the textarea and the button in a maps page that I get by clicking on a button in a previus page, the only way I can interact with this is using tab and mouseclick but this is a danger method as  you know.

I get the handle by using: $Posizione = _IEAttach("Ricerca Indirizzo su mappa")

then I tried a lot of things but nothing works, can someone give me a hint?


WinWait("Ricerca Indirizzo su mappa")
$Posizione = _IEAttach("Ricerca Indirizzo su mappa")
WinSetState ("Ricerca Indirizzo su mappa", "", @SW_MAXIMIZE  )
WinActivate("Ricerca Indirizzo su mappa")
;~ $oForm = _IEFormGetObjByName($Posizione, "form1");Punta il Form
$oText = _IEFormElementGetObjByName($Posizione,"indirizzo")

$oText = _IEFormElementGetObjByName($Posizione,"writeAddress")

;~ $LenteTestoMess = _IEFormElementGetValue($oText);Inserisce il PrimoRepertorio nella variabile
;~ _IELinkClickByText($Posizione, $oForm);Clicca su Aggiorna ed invia il form

_IEFormElementSetValue ($oText,"via Ravenna 12" );Completamento campo testo


Mappa.odt Ricerca Indirizzo su mappa.htm

Link to comment
Share on other sites

You need to use _IEGetObjById instead of _IEFormElementGetObjByName because AFAICS there isn't a true form involved. Try --

$oText = _IEGetObjById($Posizione, "writeAddress")
_IEFormElementSetValue ($oText,"via Ravenna 12" )

Not clear to me which button you are wanting to click, but the same technique should work. For example --

$oButton = _IEGetObjById($Posizione, "buttCerca")
_IEAction($oButton, "click")


Link to comment
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

  • Create New...