Loading Content

Loading URL
To load a web page by its URL use the Browser.LoadURL() method. The following code demonstrates how to load http://www.google.com web page: C#  browse...
Wed, 10 Oct, 2018 at 12:37 PM
Loading URL Synchronously
In some cases (e.g. automation testing) you might need to block current thread execution and wait until web page is loaded completely. You can use the F...
Wed, 10 Oct, 2018 at 12:38 PM
Loading URL with POST
To load web page by its URL and send some POST data, use the Browser.LoadURL(LoadURLParams params) method. The following code demonstrates how to load URL a...
Wed, 10 Oct, 2018 at 12:40 PM
Loading HTML
To load HTML content from a string use Browser.LoadHTML() method. For example: browser.LoadHTML("<html><body><h1>Load HTML Sample<...
Wed, 10 Oct, 2018 at 12:55 PM
Getting HTML
To get a string that represents HTML of loaded web page use the Browser.GetHTML() method. You must call this method only when web page is loaded completely....
Wed, 10 Oct, 2018 at 12:59 PM
Load Events
The Browser interface provides functionality that allows getting load events. You can attach delegates to get notifications about web page loading progress,...
Wed, 10 Oct, 2018 at 1:07 PM
Displaying PDF
DotNetBrowser allows displaying PDF document using Chromium PDF Viewer plugin. You can display PDF file available on a remote web server (using URL of the P...
Fri, 3 Feb, 2017 at 3:15 PM
Network Events
DotNetBrowser provides functionality that allows handling network activity including HTTP requests/responses. You can use the NetworkDelegate to handle all ...
Wed, 10 Oct, 2018 at 2:03 PM
Handling Loading
DotNetBrowser API provides functionality that you can use to handle loading and decide whether specified URL should be loaded in Chromium engine or not. The...
Wed, 10 Oct, 2018 at 2:10 PM
Handling Resources Loading
ResourceHandler can help you to determine whether resources such as HTML, Images, JavaScript & CSS files, favicon, etc. should be loaded or not. By defa...
Wed, 10 Oct, 2018 at 2:19 PM
Intercepting AJAX Requests
Using ResourceHandler you can also intercept and handle AJAX requests and determine whether this request should be executed or not. To this, you need to reg...
Wed, 10 Oct, 2018 at 2:42 PM
Enabling/Disabling Backspace Navigation
Note: Starting with Chromium 52, backspace navigation is disabled in the browser engine. This means backspace navigation is no longer available since DotNe...
Wed, 10 Oct, 2018 at 2:51 PM
Handling SSL Certificate Errors
By default DotNetBrowser rejects loading HTTPS web sites with invalid SSL certificates for security reasons. If you need to ignore invalid SSL certificates ...
Wed, 10 Oct, 2018 at 3:04 PM
SSL Certificate Verifier
In DotNetBrowser 1.7 the Certificate Validation API has been introduced. Using this API you can get information about each SSL certificate used for displayi...
Wed, 10 Oct, 2018 at 3:36 PM
Selecting Custom SSL Certificate
Since DotNetBrowser 1.11 it is possible to select SSL certificate instantiated from standard X509Certificate class. For example: C# using DotNetBrowser; u...
Wed, 10 Oct, 2018 at 3:43 PM
Navigation History
DotNetBrowser 1.8.1 introduced a new API that allows to work with the back-forward navigation history. Now it is possible to navigate to any entry in this h...
Wed, 10 Oct, 2018 at 3:43 PM
User-Agent
Up to version 1.11.1: The user-agent string can be modified only once, before you create any Browser instances. You can provide your own user-agent string ...
Wed, 10 Oct, 2018 at 3:50 PM
WebSockets
DotNetBrowser supports web pages that use WebSockets technology. For example: MainWindow.xaml <Window x:Class="WPF.WebSocket.MainWindow"  ...
Wed, 10 Oct, 2018 at 3:55 PM
Configuring Load Handler
C# using System; using DotNetBrowser; using DotNetBrowser.Events; namespace MyNamespace {     class Program     {         static void Main(string[] args) ...
Wed, 10 Oct, 2018 at 4:00 PM
Modifying POST/PUT/PATCH Upload Data
DotNetBrowser API provides functionality that allows intercepting POST / PUT / PATCH requests , accessing and modifying POST / PUT / PATCH upload data befor...
Wed, 10 Oct, 2018 at 4:01 PM
Accessing HTTP Response Data
DotNetBrowser API provides functionality that allows accessing HTTP response data such as HTML, plain text, JavaScript code, CSS, images, etc. Using this fu...
Wed, 10 Oct, 2018 at 4:21 PM
HTML5 Local & Session Storages
HTML5 supports Web Storage API that allows browsers to store key/value pairs, in a much more better way than using cookies. Web Storage API provides two mec...
Wed, 10 Oct, 2018 at 4:56 PM
HTML5 Application Cache
DotNetBrowser supports using HTML5 Application Cache to store the web application data and make them accessible without the Internet connection. In DotNetB...
Wed, 10 Oct, 2018 at 4:59 PM
Specifying WebRTC IP Handling Policy
DotNetBrowser 1.8.2 introduces an ability to customize WebRTC IP handling policy. There are a few WebRTC policies available in DotNetBrowser: Def...
Fri, 3 Feb, 2017 at 6:38 PM
HTTP Server Whitelist
Since DotNetBrowser 1.9 you can configure HTTP server authorization whitelist that represents a string with comma/semicolon separated list of URLs. This fea...
Fri, 10 Feb, 2017 at 4:13 PM
Desktop Notifications and Permission Requests
Since DotNetBrowser 1.8.4 you can handle situation when a web page wants to display desktop notifications. You decide whether the web page is allowed to dis...
Wed, 10 Oct, 2018 at 5:12 PM
Accept-Language
From version 1.12 it is possible to change the Accept-Language during runtime without re-creating Browser instance. You can set the Accept-Language string o...
Wed, 10 Oct, 2018 at 5:18 PM
Custom Protocol Handler
Since DotNetBrowser 1.13 it is possible to register custom protocol handlers that will be used to intercept and handle all the URL requests for both standar...
Wed, 10 Oct, 2018 at 5:21 PM
Upload Progress Event
The Browser interface provides a functionality which allows getting an upload progress status. You can attach a delegate to get notifications about a file u...
Mon, 30 Jul, 2018 at 1:13 PM