tags:

views:

595

answers:

0

I have a c# program that uses the Process class to launch Internet Explorer and goes to a url.

It then sends in specific strings to the search box of that page, copies the whole screen of the returned results, and processes it.

The problem I encountered is this:

I use SendKeys.SendWait("abc") to send the string to the page in Internet Explorer (the active window). As the program is running, I see that what is being populated on the page is sometimes "bc", sometimes "abbc", sometimes "abcc", and sometimes correctly "abc". Each run looks totally different. This problem happened on multiple machines I tested. But on my own machine, where I originally developed this, I've never seen it happen - only when I test it on other machines (all running XP).

I put in delays in between SendWait statements to take care of random timing issues, but am I to believe that even within the same SendWait statements there are issues?

Help needed. Thanks.