On a website, I click on tab that pulls up a popup window. From there I can make a selection which then pulls up more options on the same popup window. My code works to open the popup window, but how can I select an option from it to make my further selections?
Here's what I have tried:
Code
'Get the only form on the page
Set SiteFilter = doc.forms(0)
Dim TSfilter1 As HTMLInputElement
Dim TSfilter2 As HTMLInputElement
'Select the COE/Dept to filter
'<span id="ctl00_ContentPlaceHolder1_myFilter_lblCOE" title="COE/Dept. (this filter does not apply to EOC)">COE/Dept.</span>
IE.Document.getElementById("ctl00_ContentPlaceHolder1_myFilter_lblCOE").Click
Do While IE.ReadyState <> READYSTATE_COMPLETE Or IE.Busy: DoEvents: Loop
Debug.Print IE.Document.getElementById("ctl00_ContentPlaceHolder1_myFilter_updT2") '.SelectValue = "ETS"
Do While IE.ReadyState <> READYSTATE_COMPLETE Or IE.Busy: DoEvents: Loop
'
' IE.Document.getElementById("ctl00_ContentPlaceHolder1_myFilter_TIER3").Value = "Test Systems"
' Do While IE.ReadyState <> READYSTATE_COMPLETE Or IE.Busy: DoEvents: Loop
'
' Set TSfilter1 = SiteFilter.elements("ctl00_ContentPlaceHolder1_myFilter_lblCOE")
' TSfilter1.Click
'
' Set TSfilter2 = SiteFilter.elements("ctl00_ContentPlaceHolder1_myFilter_updT2")
' TSfilter2.Value = "ETS"
Display More
Popup window code for the first option:
Code
<div id="ctl00_ContentPlaceHolder1_myFilter_pnlCOE" class="popupMenu" style="position: absolute; visibility: visible; left: 129px; top: 202px; width: 793px;">
<div style="font-weight: bold">
COE (does not apply to EOC)
</div>
<table>
<tbody><tr>
<td align="left" valign="top">
<div id="ctl00_ContentPlaceHolder1_myFilter_updT2">
<select size="4" name="ctl00$ContentPlaceHolder1$myFilter$TIER2" multiple="multiple" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$myFilter$TIER2\',\'\')', 0)" id="ctl00_ContentPlaceHolder1_myFilter_TIER2" style="font-family:Tahoma;;font-size:8pt;height:300px;width:100px;">
<option value="-1">All</option>
<option value="ADV TECH">ADV TECH</option>
<option value="AEE">AEE</option>
<option value="AME">AME</option>
<option value="CPE">CPE</option>
<option value="CPS">CPS</option>
<option value="ECOE">ECOE</option>
<option value="EOPS">EOPS</option>
<option value="ESEA">ESEA</option>
<option selected="selected" value="ETS">ETS</option>
<option value="ISC">ISC</option>
<option value="MCOE">MCOE</option>
<option value="MPM">MPM</option>
<option value="MSEA">MSEA</option>
<option value="PI">PI</option>
<option value="PMO">PMO</option>
<option value="PSE">PSE</option>
<option value="SBU ATR">SBU ATR</option>
<option value="SBU BGA">SBU BGA</option>
<option value="SBU DS">SBU DS</option>
<option value="TIER1 ONLY">TIER1 ONLY</option>
</select>
</div>
</td>
</tr>
</tbody></table>
</div>
Display More
Any help is greatly appreciated!
Thanks,
Hilary