Problem mit_IEFormElementRadioSelect()

  • Hallo,

    Ich bereits erwähnt habe ich ein Problem mit _IEFormElementRadioSelect().
    Die Hilfe ist keine große Hilfe, den das Beispiel funktioniert noch nicht mal... :S

    Jedenfalls, hier mal das Script:

    Spoiler anzeigen
    [autoit]

    #include <IE.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $oIE = _IE_Example("form")

    [/autoit] [autoit][/autoit] [autoit]

    $oIE_Input = _IEGetObjByName($oIE, "textExample")
    $oIE_Edit = _IEGetObjByName($oIE, "textareaExample")
    $oIE_Dropdown = _IEGetObjByName($oIE, "selectExample")
    $oIE_Radio = _IEGetObjByName($oIE, "radioExample") ;// Das funktioniert
    If @error Then ConsoleWrite(@error & @CRLF & @extended & @CRLF)

    [/autoit] [autoit][/autoit] [autoit]

    _IEFormElementSetValue($oIE_Input, "TEEEESSSTT")
    _IEFormElementSetValue($oIE_Edit, "TEEESTII" & @CRLF & "TEST")
    _IEFormElementOptionSelect($oIE_Dropdown, "Freepage", 1, "byText")
    _IEFormElementRadioSelect($oIE, "Airplane", "vehicleAirplane") ;// Das funktioniert nicht!
    ;// <input type='radio' name='radioExample' value='vehicleAirplane'>Airplane<br>
    ;~ _IEFormElementRadioSelect($oIE, "vehicleAirplane", "radioExample", 0, "byValue")
    If @error Then ConsoleWrite(@error & @CRLF & @extended & @CRLF)

    [/autoit]

    Ich habe bei _IEFormElementRadioSelect() schon alles mögliche probiert, aber nichts funktioniert.
    Das ist eigentlich nur ein Testscript um mich mit den _IE... - Funktionen vertraut zu werden.

    Danke für jede Hilfe. :)

    Mfg

    There's a joke that C has the speed and efficieny of assembly language combined with readability of....assembly language. In other words, it's just a glorified assembly language. - Teh Interwebz

    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, you blow off your whole leg. - Bjarne Stroustrup
    Genie zu sein, bedeutet für mich, alles zu tun, was ich will. - Klaus Kinski

  • So

    Spoiler anzeigen
    [autoit]

    #include <IE.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $oIE = _IE_Example("form")
    $oForm = _IEFormGetObjByName ($oIE, "ExampleForm")

    [/autoit] [autoit][/autoit] [autoit]

    $oIE_Input = _IEGetObjByName($oIE, "textExample")
    $oIE_Edit = _IEGetObjByName($oIE, "textareaExample")
    $oIE_Dropdown = _IEGetObjByName($oIE, "selectExample")
    $oIE_Radio = _IEGetObjByName($oIE, "radioExample") ;// Das funktioniert
    If @error Then ConsoleWrite(@error & @CRLF & @extended & @CRLF)

    [/autoit] [autoit][/autoit] [autoit]

    _IEFormElementSetValue($oIE_Input, "TEEEESSSTT")
    _IEFormElementSetValue($oIE_Edit, "TEEESTII" & @CRLF & "TEST")
    _IEFormElementOptionSelect($oIE_Dropdown, "Freepage", 1, "byText")
    ;_IEFormElementRadioSelect($oIE, "Airplane", "vehicleAirplane") ;// Das funktioniert nicht!
    _IEFormElementRadioSelect ($oForm, "vehicleAirplane", "radioExample", 1, "byValue")
    ;// <input type='radio' name='radioExample' value='vehicleAirplane'>Airplane<br>
    ;~ _IEFormElementRadioSelect($oIE, "vehicleAirplane", "radioExample", 0, "byValue")
    If @error Then ConsoleWrite(@error & @CRLF & @extended & @CRLF)

    [/autoit]

    läuft dein Skript bei mir ( IE 8 ) einwandfrei genauso wie das Hilfebeispiel zu _IEFormElementRadioSelect. Welche IE-Version benutzt du?

    mfg autoBert

  • Ich habe IE9 (benutz ihn aber normalerweise nicht) und Win7 64bit.

    Bei mir liefert die _IEFormElementRadioSelect() - Funktion folgenden Error:

    Code
    --> IE.au3 V2.4-0 Error from function _IEFormElementRadioSelect, $_IEStatus_InvalidObjectType


    Mfg

    There's a joke that C has the speed and efficieny of assembly language combined with readability of....assembly language. In other words, it's just a glorified assembly language. - Teh Interwebz

    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, you blow off your whole leg. - Bjarne Stroustrup
    Genie zu sein, bedeutet für mich, alles zu tun, was ich will. - Klaus Kinski