MarcoMonte Posted October 15, 2020 Posted October 15, 2020 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") sleep(1000) $Posizione = _IEAttach("Ricerca Indirizzo su mappa") WinSetState ("Ricerca Indirizzo su mappa", "", @SW_MAXIMIZE ) WinActivate("Ricerca Indirizzo su mappa") sleep(500) ;~ $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
Danp2 Posted October 15, 2020 Posted October 15, 2020 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") MarcoMonte 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
MarcoMonte Posted October 15, 2020 Author Posted October 15, 2020 Thx, I will try just now and let you know
MarcoMonte Posted October 15, 2020 Author Posted October 15, 2020 It worked just fine, neat and clean, thanks a lot!!!
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