Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Script Stops If Don;t FInd Form Element ,Solution?

$
0
0
[ autoit ]      
$ie=_IECreate("about:blank",0,1,1) _IELoadWait($ie,1,1) _IENavigate($ie,"http://www.ramdomsite.com/t/") Global $oForms = _IEFormGetCollection($ie) For $oForm In $oForms If $oForm.action = "https://mobile.twitter.com/session" Then Local $sform = $oForm Next Local $oText = _IEFormElementGetObjByName($sform, "username") if $oText=$_IEStatus_NoMatch Then MsgBox(1,"","hmm")

THis is my Script
It fail to find the element And makes a error


Local $oText = _IEFormElementGetObjByName(^ ERROR

how to make condition to ignore it and continue if it dont find element
i tried
if $oText=$_IEStatus_NoMatch Then MsgBox(1,"","hmm")

and tried other like
if $oText=7 Then MsgBox(1,"","hmm")


But it didn;t worked

Please Help me thanks :)

Viewing all articles
Browse latest Browse all 12506

Trending Articles