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
0
votes
1 answer

C# Visual Studio DotNetBrowser keeps searching GetelementbyID

I'm a started in coding, and I try to autofill username and password into a page but when I click login, code still search for getelementbyid on the next page(all pages are under same domain) and crashes. I'm using Visual Studio 2k17 Thanks in…
0
votes
1 answer

set cookie dotnetbrowser. what do I do not so why cookies won't be connected to inquiry?

Not Cookies, why aren't established?? what do I do not so why cookies won't be connected to inquiry? String dataDir = Path.GetFullPath("chromium-data"); BrowserContextParams params1 = new BrowserContextParams(dataDir); BrowserContext context1 = new…
DMyrzich
  • 81
  • 1
  • 5
0
votes
1 answer

DotNetBrowser call javascript function to c#

I have this JS code which I use to display both street view and google maps in my form: /* * Click the map to set a new location for the Street View camera. */ var icon; var markers = []; var currentmarker; var geocoder,…
lpereira
  • 11
  • 7
0
votes
0 answers

Sometimes the program to hang and cannot perform any operation, and the code does not execute

In the use of the win10 system, the CanLoadResource sometimes method causes the program to hang and cannot perform any operation, and the code does not execute. but it is normal to use in a win7 system. Why did this happen? Intercepting the…
0
votes
0 answers

Switches not working with DotNetBrowser headless

I opened a ticket with DotNetBrowser, but they will be at the office on Monday, hoping I can get some expert opnion on this from you guys. I want to start DotNetBrowser with the chromium switches, but it is not working for me. UPDATE #1: My…
Ibrahim D.
  • 318
  • 4
  • 17
0
votes
2 answers

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
Stoica Nicusor
  • 211
  • 4
  • 9
0
votes
1 answer

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
votes
1 answer

dotnetbrowser click event position

I'm trying to figure out how can i get the click event position using DotNetBrowser. I know how to get a node name for a given location using X,Y points but I need to get it from a click event in browser. Any idea?
0
votes
1 answer

How do I save a modified web page that was loaded in a DotNetBrowser control?

I just want a simple one page HTML dump from the current DOM that contains the html tags and everything between. I've tried using SavePageType variations and none of them do what I need. When I use SavePageType.COMPLETE_HTML, it makes a mess of the…
GrayDwarf
  • 2,469
  • 2
  • 20
  • 22
0
votes
1 answer

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…
Michael A. Allen
  • 617
  • 5
  • 13
0
votes
1 answer

Key combination input and special key buttons pressing

In the docs only using of 'TAB' button is mentioned. KeyParams paramers = new KeyParams(VirtualKeyCode.TAB, ' '); KeyParams require char representation of the button. So how can it be done right for special 'Control' button? KeyParams paramers =…
Max Bender
  • 372
  • 4
  • 14
0
votes
0 answers

DotNetBrowser unhandled exception during execution

I've developed a multithreading WPF application which is using one instance of DotNet component (namespace WPF.DotNetBrowser). The application was running during about 21 hours of nonstop work, and then it crashed. An undandled exeption was raised…
Max Bender
  • 372
  • 4
  • 14
0
votes
0 answers

Dotnetbrowser is not reading my proxy?

I've followed the documentation here, https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000110853-configuring-proxy to configure a proxy using the DotNetBrowser by TeamDev and it's not detecting my proxy at all. …
Bob
  • 11
  • 3
0
votes
1 answer

How to get message of alert dialog?

How to capture message of alert dialog using dotnetbrowser ? I have tried to capture message using CustomDialogHandler.customDialogueParams_OnAlert, but still not getting any message.
Gauri
  • 9
  • 1
0
votes
1 answer

dotnetbrowser c# help remove entire div

I am using TeamDev Dotnetbrowser, for a tests, so how can I remove entire div, without a id, just using classname, for example: I hope someone…