I'm trying to scrape my university's student website page for my grades and schedule.
I can login fine and I get to this point here but this dropdown is giving me so many issues. The way it works normally is the user selects an item in the dropdown, then presses a button next to it to submit.
Now, I've tried setting it by doing this:
document.getElementById(selectId).value = valueIWant
and
document.getElementById(selectId).selectedIndex = indexIWant
which both work, they change the value that is displayed in the select element, however, if I click the button next to it now, or call a click() on the button, it just resets to it's original value and doesn't load the page I want. But if I select the value with my mouse everything works fine... I don't get it, and I don't know what I'm doing wrong.
Has anyone come across something like this before? I appreciate any help you guys can provide :)