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

strange, this should not happen. script stops on _IEAction

$
0
0
this is my code i put comment in it to explain what is happening


$win = "Token Control System"
$oIE = _IEattach("Token Control System", "title")
$oLinks = _IELinkGetCollection($oIE)
if not IsObj($oLinks) then
msgbox(0,"","error getting links of tim url in initialrtn")
Exit
endif

For $oLink in $oLinks
$sLinkText = _IEPropertyGet($oLink, "innerText")
;msgbox(0,"",$sLinktext)

if stringinstr($slinktext,"Deactivate Token") then
	 msgbox(0,"","exit1")			 ; >> this message appears, we are ok to here
	 _IEAction($oLink, "focus")
msgbox(0,"","exit2") ;>> this message alsoe appears, ok to here


_IEAction($oLink, "click")

		 msgbox(0,"","exit") ;>> this message does not appear
										 ; the above click causes a popup window to appear asking
										 ; to click OK or CANCEL
										 ; why would the script stop because a pop up window is
										 ; waiting a response. once the pop up is responded to
										 ; the script contiunes and this message appears
										 ; why would an external pop up window cause this script to pause?


	 ExitLoop
EndIf
Next




this is the html code associated with this script

<td class='tokenAssignedButton' align=center valign='middle' background="../images/button.gif" width="140" height="20"> <a class='link_font' href="indexPage.jsp?nav=UserResult&action=updateTokenStatus&value=0&domain=1&searchUserId=YzY5ODAxMw==&username=&pageNum=1&selectUID=YzY5ODAxMw==&userIndex=0&tempSerNoToken=000134856003&tempTypeToken=41&tempExpiryDate=1483142400" onclick="return confirmDelete()"> Deactivate Token </a> </td>


is it possible that the "onclick=" statement hangs the script, if so how do i get arround this
other than clicking OK or CANCEL

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>