I wrote an Extra! macro that goes to different shipping sites and enters screen data into their tracking forms. All of them work but for some reason in the UPS site I cannot figure out how to "click" the track button. Maybe someone here knows how to.
Here is an excerpt of my code which only puts the screen value on the tracking form but does not "click" the track button:
Within the trkinput form is this object:
<input class="btn_a" name="track.x" type="submit" value="Track">
which is the "track" button but I can figure out how to click it.
I tried this but it didn't work
Any ideas?
Here is an excerpt of my code which only puts the screen value on the tracking form but does not "click" the track button:
Code:
Case is = "UP"
Set IE = CreateObject("InternetExplorer.Application")
With IE
.AddressBar = False
.StatusBar = True
.MenuBar = False
.Toolbar = 0
.Visible = True
.Navigate "[URL unfurl="true"]http://www.ups.com/WebTracking/track?loc=en_US&WT.svl=PNRO_L1"[/URL]
End With
While IE.Busy
'Do Nothing
Wend
While IE.Document.ReadyState <> "complete"
'Again Do Nothing
Wend
Tracking = Sess.Screen.GetString(22, 7,18)
IE.Document.Forms.trkinput.trackNums.value = Tracking
IE.Document.Forms.trkinput.Submit
Set IE = Nothing
<input class="btn_a" name="track.x" type="submit" value="Track">
which is the "track" button but I can figure out how to click it.
I tried this but it didn't work
Code:
IE.Document.Forms.trkinput.item("track.x").click
Any ideas?