C# - 如何控制chrome浏览器
我想制作一个应用程序,您可以在其中指定网站名称、您的用户名和密码,并且该应用程序会自动登录您在指定网站中的所有帐户。我已经使用 Windows 窗体应用程序和 Web 浏览器完成了此操作。但我希望我的应用程序能够在 Chrome 中打开所有这些网站并在那里登录。请帮助
I wanted to make an application wherein you specify the name of the websites, your username and password and that application automatically logs in to all your accounts in the specified websites. I have done this using windows form application, using a web browser. But i wanted my application to open all these websites in chrome and log it in there. Plz Help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会检查 chrome API 是否失败
考虑通过窗口 API 调用获取窗口句柄
,但为什么不只是使用 chrome 扩展呢?!?里程更简单
I'd check out the chrome API failing that
Look into getting a handle to the window through window API calls
But why not just a chrome extension?!? Miles simpler
看看 Selenium WebDriver
Have a look at Selenium WebDriver
在 Google 上快速搜索“chrome C# api”会发现一些相关结果,我想您可能会找到相关结果。
如果您愿意接受一些让步,我认为以下内容特别有希望:
Doing a quick Google search for "chrome C# api" turned up a number of results I think you may find relevant.
I thought the following were particularly promising, if you're willing to accept a few concessions: