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

No error finding _ieformelement in console but won't set value

$
0
0
I am able to find this element

<input name="NO" onkeyup="this.value = this.value.toUpperCase();" onkeypress="IsEngorInt(event)" type="text" size="20" maxlength="12" value=""/>

From my Code below. There's no error finding the $input or formname either. I made sure my $masterbill is pulling ok too, with the msgbox. Has anyone ran into any issues like this? Thanks! Also curious how everyone pastes their code on the message boards where it can be scrolled through. I've just been pasting the text.

#include <IE.au3>
#include <Excel.au3>
#include <Array.au3>

$row = 3
$value = InputBox("Steam Vessel Tracking Script", " ENTER ACTION TO PERFORM"&@lf&@LF&"1. Track Shipments"&@lf&"2. Input CFIT Information"&@lf&"3. "&@lf&"4. "&@lf&" ", "*", " M1")
If @error = 1 Then Exit; Cancel button pressed

$oExcel = _ExcelBookOpen("F:\EI\DFW\NAT\Oracle NMC\NMC Development\Network Analyst\Reports\autoit\Steam Trac Tool.xlsx")
$aArray = _ExcelReadSheetToArray($oExcel)
$counter = $aArray[0][0]
$oIE = _IECreate("http://www.shipmentlink.com/servlet/TDB1_CargoTracking.do",0,1,1)
If $value = 1 Then
Do
$masterbill = $aArray[$row][1]
$oForm = _IEFormGetObjByName($oIE, "frmCargo");enter the form id or name
$input = _IEFormElementGetObjByName($oForm, "NO")
MsgBox("", "", $masterbill)
_IEFormElementSetValue($input, $masterbill)
#include <IE.au3>
$oButtons = _IETagNameGetCollection($oIE, "INPUT")
For $oButton In $oButtons
If String($oButton.type) = "button" Then
; Save the current element to a variable
$oButton2Save = $oButton
; Exit the for loop now that we have found the go button
ExitLoop
EndIf
Next
_IEAction($oButton2Save, "click")
_IELoadWait($oie)
$row = $row + 1
_IENavigate($oIE, "http://www.shipmentlink.com/servlet/TDB1_CargoTracking.do",1)
_IELoadWait($oie)
Until $row = $counter + 1
MsgBox("","Information Gathered", "All Shipments Tracked")
EndIf

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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