chpicker
Programmer
- Apr 10, 2001
- 1,316
Does anyone know how to automatically enter data into a field and click a button using an automated IE browser in VFP? Here's an example of what I want to do:
--Create the IE object.
--Navigate to a web page using the Navigate method.
--When the page is finished loading, programatically enter username and password into the fields provided (these are in the page, not a dialog box), then click the LOG IN button.
--Once the login is complete and the new screen is up, programatically enter data from a table into the new screen and submit it (click another button)
--When the final page is loaded, retrieve the information given, maybe execute IE's PRINT method to send the page to the printer, and RELEASE the IE object.
I want to do all of this without the user ever seeing the web browser. However, I cannot find the methods in IE that would allow me to do this. Does anyone have suggestions? Is there a complete list of accessible automation methods for IE? I've tried searching MSDN/MS Knowledge Base, but didn't have much luck. I'm pretty open as to the implementation...I could use InternetExplorer.Application or the MSWebBrowser class...or anything else suggested.
--Create the IE object.
--Navigate to a web page using the Navigate method.
--When the page is finished loading, programatically enter username and password into the fields provided (these are in the page, not a dialog box), then click the LOG IN button.
--Once the login is complete and the new screen is up, programatically enter data from a table into the new screen and submit it (click another button)
--When the final page is loaded, retrieve the information given, maybe execute IE's PRINT method to send the page to the printer, and RELEASE the IE object.
I want to do all of this without the user ever seeing the web browser. However, I cannot find the methods in IE that would allow me to do this. Does anyone have suggestions? Is there a complete list of accessible automation methods for IE? I've tried searching MSDN/MS Knowledge Base, but didn't have much luck. I'm pretty open as to the implementation...I could use InternetExplorer.Application or the MSWebBrowser class...or anything else suggested.