Damiao Tele
New Member
- Joined
- Sep 4, 2015
- Messages
- 1
I can not select the first item (if option value = " 08/08/2015 " ) .
I'm already too much time looking for solutions , can anyone help me!
HTML
I Tried
I'm already too much time looking for solutions , can anyone help me!
HTML
HTML:
******** name="frameData2" id="frameData2" style="display:none;">*********>
<form name="frmSolic">
<input type="hidden" name="hidTela" value="data2">
<input type="hidden" name="hidData2Value">
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="ListaTab2" align="center">
<select name="selData" size="9" *******="javascript:enviaValores();" style="width:450px;">
<option value="08/08/2015">08/08/2015</option><option value="07/08/2015">07/08/2015
Code:
For Each element In IE.Document.frames("iframe").Document.getElementsByTagName("frameData2")
If element.Name = "selData" Then
element.Value = "08/08/2015"
Exit For
End If
Next element
' click com a data seleionada
For Each element In IE.Document.frames("iframe").Document.getElementsByTagName("frameData2")
If InStr(SubmitInput.getAttribute("onclik"), "javascript:enviaValores();") Then
SubmitInput.Click
Exit For
End If
Next
Last edited by a moderator: