I'm trying to cycle through a drop-down menu where each element is a link to a different page. I would like to cycle through all the elements of the drop down menu by clicking on them one at a time, going to the page it directs me to, downloading something from that page, and then clicking on the drop down menu (which exists on every page) and going to the next option on the menu.
This is the code of the drop down menu:
<div class="account-selection">
<input type="hidden" name="fromResourceNode" value="/content/customer/my_account/jcr:content/mainpar/myaccount">
<input type="hidden" name="extraTabInfo" id="extraTabInfo" value="">
<input type="hidden" name="extraAccordionInfo" id="extraAccordionInfo" value="">
<label for="selectAcct" class="hidden">Select your account</label>
<select id="selectAcct" name="currAcctNumber">
<option value="1001140692">1001140692, 4 BEECH </option>
<option value="1001140648">1001140648, BEECH 3</option>
<option value="1001257836">1001257836, 7C BEECH </option>
<option value="1001265171">1001265171, 4E BEECH </option>
<option value="1001238965">1001238965, 4D BEECH </option>
When i try using:
select = Select(browser.find_element_by_id('selectAcct'))
select.select_by_value('1001140648')
Keys.ENTER
For whatever reason the selenium browser is not being directed to the next page that actually clicking on the link would take me to. Any idea what I am doing wrong? I have all the imports set up correctly and everything else to the program is running smoothy.
Also, is there any simple way to go through the entire drop down menu without having to fill in the actual option values manually?
Thanks!
outerHTML?