I am trying to use a headless browser (Firefox Marionette) to drive a drop-down selection process on a website I do not control. The setup is as follows: there's
- a drop-down menu where I can make a selection
- a second drop-down menu that reloads when I click my selection in the first one, exposing more options than it initially displays.
Clicking in a browser works fine, but if I try to do this in a console, the second menu does not reload:
var sel1 = document.getElementById("1stmenu")
sel1.value="my selection"
sel1.selectedIndex=1
This changes the first drop-down menu appropriately, but does not trigger the 2nd menu's reload; the latter remains blank, displaying no options.