Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to automate data entry to our shipping supplier's on-line webpage. It's DHL. We ship a lot, so manual entry is a pain.

I can log on OK, but trying to get beyond that pops up their error message "Third party error. Your session expired. Please login to MyDHL again."

Pretty much the only code so far is
C#
webBrowser1.Navigate("https://www.mydhl.dhl.com/landing?utm_source=SA&utm_medium=hp_tc&utm_campaign=login_link&ccOverride=SA&language=en");


This brings up the log on page. I can manually log on fine and get to the main page, but clicking the next link to generate a shipping order throws up the error.

This is the link and I'm manually clicking it with the mouse.

<a class="arrowLink" onclick="_gaq.push(['_trackEvent', 'externalLink', 'popupWindowOrTab', 'wsi']); return windowOpener('/mydhl/WSISSO', 'window_send', false);" href="/mydhl/WSISSO" target="window_send">Prepare My Shipments</a>

This happens immediately, so it looks as if I'm not getting the session or security information to them rather than actually timing out.

Using the plain IE browser manually (or FF and Chrome for that matter) works fine.

Can some kind person point me in the right direction to get the Webbrower control to act the same as a browser?

Thanks!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900