Jump to content

Recommended Posts


I'm wondering why I'm having such issues selecting this dropdown 

<select class="form-control valid" onchange="showRelationship()" id="Client_HasRelationshipWithExistingClient" name="Client.HasRelationshipWithExistingClient" aria-invalid="false">
            <option value="0" selected="selected">No</option>
            <option value="1">Yes</option>

So I tried this way


$Client_RelationshipInformationDropdownID = _IEGetObjById($oIE, "Client_RelationshipInformation")
            _IEAction($Client_RelationshipInformationDropdownID, "focus")
            ;_IEFormElementOptionSelect($Client_RelationshipInformationDropdownID, 1)

and also this way 

_IEFormElementOptionSelect($Client_RelationshipInformationDropdownID, "Yes", 1, "byText")

But it won't change? 

Link to post
Share on other sites

try with this  code

and  tell about return

Local $oBtns = $oIE.document.GetElementsByTagName("select")
            For $oBtn In $oBtns
                $id = String($oBtn.classid())
                ;ConsoleWrite($classname & @CRLF)
                If $id = "Client_HasRelationshipWithExistingClient" Then
                    _IEAction($oBtn, "click")
                    ;   _IEFormElementSetValue($oBtn, $sUser)


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...