问题标签 [dotnetbrowser]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
119 浏览

dotnetbrowser - Providing Location information in DotNetBrowser

When navigating to a website who requires location information, how can I tell DotNetBrowser to provide that location information to the website? For example, in Chrome, we're prompted with a dialog similar to the image below. Is there a way that I can turn this on? Or automatically satisfy that requirement through a property setting?

enter image description here

0 投票
1 回答
138 浏览

dotnetbrowser - 如何保存在 DotNetBrowser 控件中加载的已修改网页?

我只想要一个来自当前 DOM 的简单的一页 HTML 转储,其中包含 html 标记及其之间的所有内容。

我尝试过使用 SavePageType 变体,但它们都没有满足我的需要。

当我使用 SavePageType.COMPLETE_HTML 时,它会弄乱 html 并更改所有资源链接并下载我不想要的资源。

我不能使用 SavePageType.MHTML 选项。

当我使用 SavePageType.ONLY_HTML 时,它可以完美保存,但不会保存对 DOM 所做的更改,这很奇怪。

我也尝试获取 html 元素,但 GetElementByTagName 找不到它。html、head 和 body 标签也丢失了,尽管它提供了这些标签中的内容,这真的很奇怪。

有没有办法使用 DotNetBrowser 捕获修改后的 html(没有问题)?

0 投票
1 回答
617 浏览

c# - dotnetbrowser 点击事件位置

我试图弄清楚如何使用 DotNetBrowser 获取点击事件位置。

我知道如何使用 X,Y 点获取给定位置的节点名称,但我需要从浏览器中的单击事件中获取它。

任何想法?

0 投票
1 回答
1108 浏览

dotnetbrowser - 如何安装开源许可证#dotnetbrowser

我有一个 DotNetBrowser 的开源许可证,但是每当我使用 WinFormsBrowserView 时都会遇到异常,因为我没有通过许可证验证:

“DotNetBrowser 许可证检查失败:此许可证只能与绑定类型名称一起使用”

不完全确定这意味着什么,或者我如何解决它。

0 投票
0 回答
723 浏览

wpf - 无法创建浏览器错误(访问被拒绝)

使用我的应用程序的多个实例时,我收到“无法创建浏览器”错误。我按照建议为每个实例使用不同的文件夹。

错误:无法创建浏览器。System.ComponentModel.Win32Exception (0x80004005):访问在 System.Diagnostics.Process.GetProcessHandle(Int32 访问,布尔 throwIfExited) 处被拒绝访问。 Process.GetProcessTimes() 在 System.Diagnostics.Process.get_StartTime() 在 ‍‍‎‎‌‎​​‍‎ ‏.‍​‌​‎‎‍‌‍‎‌‎‎( Int32 ) at ​‏‍‌‏​‍‌‌‍.‌ ​‏‎​‏‏() at ​‎​ ​‍‏​‌‌..ctor(‍‏‏‎‍ ‎​‌​‌‏‌‍,BrowserType)在‍‎​​‍ ‏‎‎‍.‏‌‏‎‌‎‎‎​‌‎ ‏‌‎‌‌‏‌‏(‍​​‍‎‌‌‏‍‎ ,浏览器上下文,

我的代码:

0 投票
1 回答
156 浏览

html - 是否可以在 Visual Studio 应用程序中将 Unity3D 项目作为 HTML5 导入?

我有一个构建为 HTML5 的 Unity 项目。我可以在 Firefox、Edge 和 IExplorer 11 中完美地看到它。我想在 Visual Studio 2015 (Visual Basic) 的 Windows 窗体应用程序中的 Web 查看器控件中打开它。我尝试使用基本的 webbrowser 控件,然后使用 webview(在 UWP 中),然后使用 awesonium,最后使用 DotNetBrowser。他们都不允许我看到 html5 页面,都显示错误“您的浏览器不支持 WebGL”。我还将用户代理的注册表项设置为“11001”(IE11)和“12001”(Edge)。

您是否知道是否有任何控件可以正确呈现 Unity 中的 HTML5 项目,或者是否需要进行特定设置?

0 投票
1 回答
100 浏览

dotnetbrowser - DotNetBrowser,如何从浏览器实例中获取加载页面的服务器IP地址

我想知道当我们使用 DotNetBrowser 加载页面时,我们如何获取为该页面加载请求提供服务的服务器的 IP 地址。

0 投票
1 回答
137 浏览

dotnetbrowser - How to get ajax POST data content

Use dotnetbrowser.I intercept ajax but how to get ajax POST data content.

https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000130231-intercepting-ajax-response-body

0 投票
2 回答
154 浏览

dotnetbrowser - Q: Does DotNetBrowser support socks5 authentication?

Using the code example provided here : https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000110051-configuring-proxy works only with HTTP(S) proxy but not with socks5. Is there support for doing the same for SOCKS 5 ? Thanks

0 投票
0 回答
571 浏览

chromium - 开关不适用于无头 DotNetBrowser

我用 DotNetBrowser 开了一张票,但他们周一会在办公室,希望我能从你们那里得到一些专家意见。

我想用铬开关启动 DotNetBrowser,但它不适合我。

更新#1:

我的应用程序是控制台(不是 Windows 窗体),这是我的完整代码

更新#2

这是 DotNetBrowser 日志:

我把日志中的所有开关都拿走了,并使用 cmd 手动运行了 aganist chrome.exe,开关确实起作用了(必须在--port开关之前添加空间)

然后我也使用 cmd,测试了 browsercore32.exe 的开关,但我收到一个 cmd 错误,说我需要在之前添加空间--port,一旦我添加了那个空间,browsercore 进程就会启动。

我想知道,问题出在这一行:

4/21/2018 5:57:08 PM Information Process - Command line: C:\Users\Administrator\AppData\Local\Temp\2\dotnetbrowser-chromium\60.0.3112.113.1.14.2.0.523c\browsercore32.exe"--port=61259" "--no-sandbox" "--pid=8172" "--crash-dump-dir=C:\Users\Administrator\AppData\Roaming\DotNetBrowser\dotnetbrowser.dmp.dir" "--user-agent=Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; MALCJS; rv:11.0) like Gecko" "--disable-surfaces" "--noerrdialogs" "--enable-logging" "--disable-web-security" "--reduce-security-for-testing" "--unsafe-pac-url" "--disable-gpu" "--disable-gpu-compositing" "--enable-begin-frame-scheduling" "--software-rendering-fps=60" [IPC Process Thread]

the"--port就在 the 之后,.exe没有空格分隔它们。

所以不应该browsercore32.exe" --port=61259"

好吧,这是我唯一看到的为什么没有读取开关的原因。

无论如何,也许这是我完全想念的其他东西。

更新#3:

Chromium 日志仅包含以下内容:

此外,如果我--unsafe-pac-url使用 cmd aganist chrome.exe 运行,它工作得非常好。