Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

IE Radio Button

$
0
0
I've read the documentation and several forum posts, and my code should be working, so I'm confused.

The source code:
<div class="Literal">List, approve or process Restock Orders (replenishment requests).
<input type="hidden" id="requestId" name="requestId" value="">
</div>
<div id="not_company_info">No data available for the selected company.</div>
<div class="tableContainer" id="all_info" >
<form method="post" name="restockForm" action = "restockManager_restockStep1.action" >
<table cellspacing="0" cellpadding="3" rules="all" border="1" id="apexTblDisplay" style="font-family:Verdana;width:100%;border-collapse:collapse;">
  <tr>
   <td width="200">Select a Company:</td>
   <td align="center"><div id="companySelect"></div></td>
  </tr>
  <tr >
   <td>Select a Site:</td>
   <td id="searchSiteTd">
		  <select name='siteId' id='searchSiteId'  >
		   <option value='NONE'>None</option>
		  </select>
		 </td>
  </tr>
  <tr >
   <td>Select an Action:</td>
   <td >
		  <input type="radio" name="searchType" checked="checked" onclick="clisckSearchType()" value="APPROVE">Search for Restock Orders to approve.
		  <br> <input type="radio" name="searchType" onclick="clisckSearchType()" value="RESTOCK">Search for Restock Orders to complete.
		  <br> <input type="radio" name="searchType" onclick="clisckSearchType()" value="KEY_WORDS">Search for Restock Orders by Status, Date Range or Keyword.
		  <div id ="key_words_div" style="display:none">
		   <table cellspacing="0" cellpadding="3" rules="all" border="1" id="apexTblDisplay" style="font-family:Verdana;width:100%;border-collapse:collapse;">
			<tr><td>Restock Status:</td>
			<td>
			 <select name='status' id='searchStatus'  >
			  <option value='ALL'>ALL</option>
			  <option value='INPROGRESS'>INPROGRESS</option>
			  <option value='ORDERED'>ORDERED</option>
			  <option value='RESTOCKED'>RESTOCKED</option>
			  <option value='CANCELLED'>CANCELLED</option>
			 </select>
			 </td>
				</tr>
			<tr>
			 <td>Date Range:</td>
			 <td>
			  <input type="text" name="beginDate" id="beginDate"/>     End Date:<input type="text" name="endDate" id="endDate"/>
			 </td>
			</tr>
			<tr><td>Keyword:</td><td><input type="text" name="keyWords" id="keyWords" value="">
			 (Customer #, Customer PO #, Restock Order #, Device Name, or Device SN)
			 </td>
			</tr>
		   </table>
		  </div>
		 </td>
  </tr>
  <tr >
   <td colspan="2" style="text-align:center">
		  <input type="button" value="Search" onclick="search();">
		 </td>
  </tr>
</table>
</form>
<div id="showPageData" ></div>
<div id="divWaiting" ></div>
</div>


My code:
[ autoit ]      
Local $oForm = _IEFormGetObjByName ($oIE, "restockForm") _IEFormElementRadioSelect($oForm, "RESTOCK", "searchType")

This code should be selecting the "Search for Restock Orders to complete." radio button, but it's not. Intermittently, I get a console error that says "Warning from function _IEFormElementRadioSelect, $_IEStatus_NoMatch"

Anyone see what I'm overlooking?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>