Questions tagged [dotnetbrowser]

Use this tag for questions about DotNetBrowser, a Chromium-based control which allows .NET applications to display web pages.

Definition:

DotNetBrowser is a .NET Library which allows embedding a Chromium-based control into .NET applications to display modern web pages built with HTML5, CSS3, JavaScript, etc. DotNetBrowser supports both WPF and WinForms .NET graphical subsystems and provides WPF/WinForms UI controls which you can embed into your .NET Desktop Application to display web pages.

Main features:

  • WPF / WinForms Control
  • Display Web Accurately
  • HTML5, CSS3, JavaScript Support
  • Multi-Process Architecture
  • Browser Events Listeners
  • JavaScript Dialogs Handler

A full list of features can be found here: https://www.teamdev.com/dotnetbrowser#features

System requirements:

Microsoft Windows

  • Windows 10, 8, 8.1 & 7
  • Windows Server 2016, 2012 & 2008 R2

Microsoft Visual Studio

  • 2013, 2015 & 2017

.NET Framework

  • 4.0 or higher

More info & reading:

Code example:

WinForms:

BrowserView browserView = new WinFormsBrowserView();
Controls.Add((Control) browserView);
browserView.Browser.LoadURL("http://www.google.com");

WPF:

<Grid Name="mainLayout">
</Grid>

webView = new WPFBrowserView(BrowserFactory.Create());
mainLayout.Children.Add((UIElement)webView.GetComponent());
webView.Browser.LoadURL("http://www.google.com");
161 questions
1
vote
1 answer

DotNetBrowser inside a ScrollViewer cannot scroll in WPF application

I have a WPF application where I put on several DotNetBrowser.WPF.WPFBrowserView elements inside a ScrollViewer vertically. My problem is that these are not scrolling when I start scrolling with the ScrollViewer. I know that this is just an embedded…
IThomas91
  • 227
  • 1
  • 16
0
votes
0 answers

Window freezing when not active using dotnetbrowser

I have searched around about this weird .NET WinForms application behavior and I couldn't find an explanation or a solution. I have a From which has a dotnetbrowser (chromium) component that loads a page periodically and launch some scripts on it…
M. Serseg
  • 103
  • 1
  • 1
  • 4
0
votes
1 answer

dotnetbrowser does not work properly after setting socks5

After setting socks5 proxy IP, dotnetbrowser can't access it, ERR_CONNECTION_RESET error appears, does dotnetbrowser support socks5, how to set it correctly if it does? I set it up this way, but it didn't…
regina
  • 1
0
votes
1 answer

DotNetBrowser DOM Events

Please help me Here My Code But Not Work //using DotNetBrowser { document = browser.GetDocument(); DOMInputElement txtsearch = (DOMInputElement)document.GetElementByClassName("ts1222"); txtsearch .Value = "book"; …
Alen Smith
  • 35
  • 8
0
votes
1 answer

Does DotNetBrowser support WebAuthn / PublicKeyCredentials?

As far as I can tell from my initial attempts, I don't think it does. I can't find any mentions on the interwebz, or in the dotnetbrowser documentation. Logs seem to imply some failure that might be related, but can't be…
mrmoosehead
  • 145
  • 1
  • 8
0
votes
1 answer

Is there a way to connect to my existing DotNetBrowser session using playwright

I want to automate the web view of the hybrid screen (DotNetBrowser inside a .Net Container) using Playwright automation tool. I have checked by providing the value(URL of the Web view) as EndPoint within connectOverCDP method but it dint work. The…
0
votes
1 answer

dotnet browser throwing Reload site prompt

I am using dotnetbrowser 2.8 version I have wpf page where I have 2 grids. one containing dotnetbrowser added to a grid and other contain a button. I am loading a webpage using dotnetbrowser and button present below to close the window/page. I need…
VMG
  • 129
  • 11
0
votes
1 answer

How to allow DotNetBrowser v. 1.21.5.0 to access EXE file stored on local machine

i have a specific questions in regards to using DotNetBrowser library in C# project. I am asking because i have already seen some answers for DotNetBrowser here and i figured someone might have an answer for me. Here is the problem: The organisation…
0
votes
0 answers

Download File Silently with DotNetBrowser

How can I download files silently with the DotNetBrowser? Every time I download a file, I am shown the file dialog. In the example below, there is a download link on the page. When I click it, I would like the file to download without a file dialog.…
0
votes
1 answer

What exactly must be specified for keycode and keychar when simulating keypresses (vb.net or c# with dotnetbrowser)

(I'm asking with vb examples, but the same applies for c# and the answer would be the same.) I'm trying to fill in a form using dotnetbrowser and have problems understanding what exactly to put into the keychar and keycode/virtualkey parameters when…
Thomas
  • 113
  • 5
0
votes
1 answer

DotNetBrowser and Promises

I'm using DotNetBrowser as a sort of headless Javascript engine within a .Net app. It seems DotNetBrowser has no support for Promises, or I am not using invoking them properly. In JS: window.fooAsyncMethod = () => { return new Promise((resolve,…
0
votes
1 answer

How to provide Credentials in http Proxy in Dotnetbrowser?

I'm working in Dotnetbrowser using proxy without credentials. But i need to provide username and password in proxy. I'm implementing the code in my constructor. This is my working code string proxyRules =…
skhurams
  • 2,133
  • 7
  • 45
  • 82
0
votes
1 answer

User data not persisting in DotNetBrowser component

Using DotNetBrowser in WPF app in Windows 10. When navigating to certain pages that typically save user data and use it in subsequent loads to restore your settings, it doesn't seem to be happening. See example code here of a very simple…
Ben
  • 495
  • 1
  • 7
  • 17
0
votes
2 answers

Prevent Canvas Fingerprinting in DotNetBrowser

I am trying to get DotNetBrowser to not be identified using Canvas Fingerprinting. You can see details at this website: https://browserleaks.com/canvas I've tried turning off the following switches: ChromiumSwitches.Add("--disable-gpu") …
Penfold
  • 11
  • 2
0
votes
1 answer

Button elements are supposed to be input elements, but the .click() method fails on many button elements that should be clickable

I am trying to use dotnetbrowser to log into facebook currently, but I have run into this issue with other button elements on a few different sites. facebook login page has elements with ID attributes: "name", "pass" and "login" for username,…