本文介绍了是否可以通过C#代码控制Google Chrome事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用C#代码完全控制Google Chrome。意味着打开新的谷歌浏览器浏览器,其中包含URL,隐藏地址栏和工具栏,用新URL替换现有URL,然后刷新相同的浏览器页面。我不想使用任何第三方工具。




是否可以只使用C#代码(不是ASP.NET)?  

I want to have full control over Google Chrome using C# code. Means open new Google Chrome browser with an URL, hide address bar and Toolbar, replace existing URL with new URL and then refresh same browser page. I don't want to use any third party tools.

Is it possible using only C# code(not ASP.NET)?  

推荐答案

感谢您发布此处。

>> I不想使用任何第三方工具。

>>I don't want to use any third party tools.

对于您的问题,第三方工具是什么意思?在.net框架中,没有支持Chrome的特殊API。

For your question, what does the third party tools mean? In .net framework, there is no special API to support Chrome.

Chrome浏览器支持较少知名的称为远程调试的API。它是基于JSON / WebSockets的协议,Chrome Developer Tools基本上使用它来附加到远程网页。

Chrome Browser supports less known API called Remote Debugging. It is a JSON/WebSockets based protocol, which is basically used by Chrome Developer Tools to attach to a remote web page.

请参阅以下文章。

最好的问候,

Wendy

注意:此响应包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。


Microsoft不控制这些网站,也没有测试在这些网站上找到的任何软件或信息;因此,Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。

使用互联网上的任何软件都存在固有的危险,微软提醒您在从Internet检索任何软件之前确保您完全了解风险。

Note: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.
Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


这篇关于是否可以通过C#代码控制Google Chrome事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 07:42