I have this web browser which opens up a website(which is actually a .java page that sets and gets a page) that has a drop down list showing values that the user can select. And when I the firebug to inspect the elements in the page, what shows in the inspection window for the drop down list element is this:
<select id="instance2" name="instance2"> <option value="0">All instances</option> <option value="1">Item0</option> <option value="2">Item1</option> <option value="3">Item2</option> . . . <option value="23">Item22</option>
What I'm supposed to do is to get the values and update them automatically to the database. I'm actually using HtmlUnit to do this project, and I've heard how I can use getElementById() to get the values. But I don't know how to start.
Thanks, help would be greatly appreciated!