与浏览器互动 [英] Interacting With a Browser
问题描述
对于以下挑战,我们将不胜感激.
I would appreciate any comments on the following challenge.
我需要在代码级别与浏览器(默认或其他)进行交互.
I have a need to interact with a browser, (Default or Other), at a code level.
我不一定要看到浏览器运行,因为我对图形界面不感兴趣.
我已经开始玩"Process.Start"了.成功调用浏览器对象的函数,
但是一旦被调用,我几乎无能为力了.
例如,我想开发一个应用程序,该应用程序可以自动导航到一个网站,该网站要求我使用我的会员详细信息(用户名和密码)登录.然后,我想自动自动填写这些凭据,然后点击点击".
在登录"关联.这是一个真实的应用程序,因为我想从自己的应用程序中从网站检索信息,并将此数据公开给用户,而无需用户实际打开一个
浏览器,然后深入到他或她需要的信息.
I don't necessarily need to see the browser run as I am not interested in the graphical interface.
I have already started playing around with the "Process.Start" function which successfully invokes the browser object,
but once invoked, there seems to be little that I can do with it.
As an example, I would like to develop an application that automatically navigates to a website that requires me to sign in with my member details, (Username and Password). I would then like to automatically fill in these credentials automatically and "Click"
on the "Login" link. This has a real world application in that I would like to retrieve information from a website, from within my own application, and expose this data to the user, without the need for the user to physically have to open a
browser and drill down to the information which he or she requires.
为解决这个问题所做的任何贡献将不胜感激.
Any contribution which you can make to solving this would be greatly appreciated.
推荐答案
哦,您想成为一名Web开发人员而又不了解Web技术,例如浏览器和客户端幻灯片编程语言,例如 . JavaScript.这确实是一项艰巨的任务,但一厢情愿.
Oh, you want to be a Web developer without knowing Web technology like a browser and a client-slide programming language, like JavaScript. That's a tall order indeed and wishful thinking.
这篇关于与浏览器互动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!