I'm attempting to make a program that will pull information off of a website that my brothers' school uses to display your current grades.
I have basically everything set up, but I'm having trouble with one thing.
I'm using a WebBrowser for this, by the way, I'm aware that I should be using WebRequests.
There is a combobox (dropdown menu) that will be filled with the list of Students that are registered to the parent's account.
However, the students aren't loaded into the combobox until the box is clicked.
I attempted to have the WebBrowser just click the combobox but I couldn't get that to work.
Here is the HTML for the Combobox:
<a id="droplist" tabindex="1" href="#students" class="fg-button fg-button-icon-right ui-widget ui-state-default ui-corner-all ui-state-loading">SELECT A STUDENT<span class="ui-icon ui-icon-triangle-1-s"></span></a>
Here is the HTML for the DIV that contains the names while they aren't loaded:
<div id="students" class="hidden"> <ul></ul> </div>
Here is the HTML for the DIV that contains the names within the combobox when they're loaded:
<div id="students" class="hidden"> <ul><li><a href="#" id="17743">Aaron P. Hailey </a></li><li><a href="#" id="16265">Aidan C. Hailey </a></li><li><a href="#" id="19305">Ethan B. Hailey </a></li></ul> </div>
My guess is that I'll have to send an additional request to get the information or something, but could anyone think of an easy workaround?
I'm a noob to VB so I'm having quite a bit of trouble with this.
Thank you, let me know if you need any additional information!
fireEvent method - Fires a specified event on the object.
After setting the dropdown value you may try to trigger the event(onchange) attached to dropdown.