Results 1 to 10 of 10

Thread: IE automation: able to change dropdown list value but webpage doesn't update

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    IE automation: able to change dropdown list value but webpage doesn't update

    The webpage: https://www.avanzabank.se/aktier/lista

    I want it to update when I change the value of the second dropdown list "Lista".

    The list:
    HTML Code:
    <select id="list" class="list" name="listKey">
    <option value="large_cap_se"></option>
    <option value="mid_cap_se"></option>
    <option value="small_cap_se"></option>
    <option value="firstnorth_se"></option>
    <option value="aktietorget"></option>
    <option value="ngm_equity"></option>
    <option value="ngm_mtf"></option>
    <option value="inofficiella"></option>
    <option value="xterna_listan"></option>
    </select>
    VBA-code:
    [VBA]IE(0).Document.getElementById("list").SelectedIndex = 2
    IE(0).Document.getElementById("list").FireEvent ("onchange")[/VBA]
    I have also tried:
    [VBA]IE(0).Document.getElementById("list").onchange[/VBA]
    without success.
    Last edited by Sandstedt; 11-15-2012 at 11:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •