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

help with IE Form elements when the GUI reloads

$
0
0

this code works as expected, except the page reloads and current OPTIONs are lost. How can I keep them persistent?

 

_IELoadWait($oIE)
Sleep(2000)

$oForm = _IEFormGetObjByName ($oIE, "myform")
$tz = _IEFormElementGetObjByName ($oForm, "OidSB1.17.2.19.1.1")
If @error = "0" Then
For $t in $tz
    $tzop = _IETagNameGetCollection($tz, "OPTION")

    For $tzo in $tzop
        $o = $tzo.innerText ---->> problem is here
        Sleep(4000)
        _IEFormElementOptionSelect($tz, $o, 1, "bytext")
            ;ConsoleWrite($tz.name & " Codec: " & $tzo.innerText & @CRLF)
            ConsoleWrite("Codec: " & $tzo.innerText & @CRLF)
            FileWrite($file, "  Codec: " & $o  &  @CRLF)
            Sleep(8000)

    Next
    ExitLoop
Next
ElseIf @error = "3" Or  @error = "4" Or @error = "7" Then
    ConsoleWrite("Can't find the Codec selection option" & @CRLF)
EndIf
Sleep(2000)

 

below is the error that I get,

 

C:\autoit\FTSuite.au3 (399) : ==> The requested action with this object has failed.:
$o = $tzo.innerText
$o = $tzo.innerText^ ERROR

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles