We have a VFP application and need to open a specific site in Chrome or Firefox. The site is optimized for either of those browsers.
We know how to Createobject
for InternetExplorer.Application
to open a browser inside our application. This allows us to interract with the browser. However, it works only with IE
.
Does anyone know how to accomplish the same purpose using either Chrome
or Firefox
?
We have done this to open the default browser (which is Chrome
or Firefox
).
oShell = Createobject("wscript.shell")
oShell.Run(lcUrl)
The issue with this approach is that it just opens the browser and we cannot interact with it (eg pass values and read items on the page).
At a minimum, if we can open Chrome
or Firefox
and pass POST parameters without using a querystring
that would be an acceptable start.
Chrome doesn't expose an OLE Automation interface so I think you are out of luck with CreateObject(). You might be able to send keystrokes to it somehow but it would be kludgey at best.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.