LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get html

Hi all,

I am trying to write a little program to navigate to a transport website, enter a tracking number, submit it, page scrape the html, pass the string it to get the status of the order.

The code I have attached is my attempt at navigating, entering tracking number and submitting.
For some reason the submit function does not seem to actually submit the data and return the status page. 

After I get this page to return the tracking information, I think I have other bits of code I can use to get the data I need from it.  I will then run it multiple times to get a list of items in an excel sheet.

Any help on this code would be great.

Thanks in advance
0 Kudos
Message 1 of 3
(2,815 Views)
Hi Sniepsy,
Please look at the source code of the page you are trying to submit the tracking information to, and note that the submit functions on this page is implimented in javascript.  So when you call the Submit function, nothing happens.
onclick="checkAndSubmit()

Instead, use the IHTMLElement method "Click" on the "track" button, and that should work.

Yi Y.
Applications Engineer
National Instruments
http://www.ni.com/support
Message 2 of 3
(2,782 Views)

duplicate thread

The question is: how to ""Click" on the "track" button"! Smiley Wink

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 3 of 3
(2,765 Views)