DOM

Document Element
Each web page loaded in the browser has its own document object. To access document object of loaded web page use the Browser.GetDocument()method. This meth...
Fri, 14 Sep, 2018 at 2:32 PM
Finding Elements
DotNetBrowser DOM API provides functionality that can be used for finding HTML elements on the loaded web page by different conditions. The following sample...
Fri, 14 Sep, 2018 at 2:45 PM
Finding DOM Node by Location
DotNetBrowser 1.8.1 introduces an ability to get the DOM node at the particular location on the page. TheBrowser.NodeAtPoint() method returns aDOMNodeAtPoin...
Mon, 8 Oct, 2018 at 4:36 PM
Working with HTML Select & Option
DotNetBrowser DOM API allows working with HTML SELECT and OPTION elements. To work with SELECT element, the DOMSelectElementclass is used. Let's see ho...
Mon, 8 Oct, 2018 at 4:54 PM
Selecting HTML CheckBox
To programmatically select/unselect HTML input type=checkbox element use the DOMInputElement.Checked property. The following sample demonstrates how to find...
Mon, 8 Oct, 2018 at 5:12 PM
Simulating Click on DOM Element
DotNetBrowser DOM API provides functionality that allows you to simulate click on any HTML element on the loaded web page. To simulate click you need to mak...
Mon, 8 Oct, 2018 at 5:29 PM
Listening to DOM Events
Each DOMNodeimplements DOMEventTargetinterface that provides methods for registering DOM events. You can register DOM listener to receive DOM events such as...
Mon, 8 Oct, 2018 at 5:35 PM
Simulating DOM Events
Starting from DotNetBrowser 1.8.1 it is possible to simulate any DOM event for any particular node. The following sample demonstrates how to simulate a ...
Mon, 8 Oct, 2018 at 5:52 PM
Working with XPath
DotNetBrowser DOM API provides functionality that allows evaluating XPath expressions. You can evaluate XPath expression in the scope ofDOMDocument or speci...
Tue, 9 Oct, 2018 at 12:49 PM
Setting Node Value
The following sample code demonstrates how to change the value of a particular node. C# using DotNetBrowser; using DotNetBrowser.DOM; using DotNetBrowse...
Tue, 9 Oct, 2018 at 1:31 PM
Setting Input Field Value & Working With Form
The following sample demonstrates how to set the values of the form input elements (text field or check box). The same approach will also work if there is n...
Tue, 9 Oct, 2018 at 1:43 PM
Accessing and modifying DOM Element Attributes
The following sample code demonstrates how to access, list and modify attributes of the particular DOM element. Note: Element attributes cannot be used t...
Tue, 9 Oct, 2018 at 2:10 PM
CSS Selectors
The following sample code demonstrates how to find the first element that matches a specified CSS selector(s) in the document. C# using DotNetBrowser; usi...
Tue, 9 Oct, 2018 at 2:18 PM
Modifying DOM Structure
DotNetBrowser 1.8.1 brings an update to the DOM API. Now it is possible to create new DOM elements and text nodes, append them as child nodes to the existin...
Tue, 9 Oct, 2018 at 2:26 PM
Obtaining DOM Element Position
Starting from DotNetBrowser 1.8.3 it is possible to obtain absolute or relative DOMElement position using the following properties: DOMElement.OffsetT...
Fri, 3 Feb, 2017 at 7:22 PM
Injecting Custom CSS
Since DotNetBrowser 1.9 it is possible to specify custom CSS rules, which will be then applied to every page loaded in the Browser instance. You can config...
Tue, 9 Oct, 2018 at 2:28 PM
Modifying the Attribute Value of the DOM Element
This article demonstrates how to update the attribute value of the specified element by the element Id. С# using System; using DotNetBrowser; using DotNet...
Tue, 9 Oct, 2018 at 3:32 PM