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, 3 Feb, 2017 at 6: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, 5 Jan, 2018 at 12:07 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...
Fri, 3 Feb, 2017 at 6:37 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, 25 Jun, 2018 at 3:40 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...
Fri, 3 Feb, 2017 at 6:44 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...
Fri, 3 Feb, 2017 at 6:47 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...
Thu, 4 May, 2017 at 11:09 AM
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 ...
Fri, 3 Feb, 2017 at 6:56 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...
Fri, 3 Feb, 2017 at 7:19 PM
Setting Node Value
The following sample code demonstrates how to change the value of a particular node. using DotNetBrowser; using DotNetBrowser.DOM; using DotNetBrowser....
Fri, 3 Feb, 2017 at 7:14 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...
Mon, 27 Nov, 2017 at 3:25 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...
Wed, 24 Jan, 2018 at 1:01 PM
CSS Selectors
The following sample code demonstrates how to find the first element that matches a specified CSS selector(s) in the document. using DotNetBrowser; usi...
Fri, 3 Feb, 2017 at 7:12 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...
Fri, 3 Feb, 2017 at 7:08 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...
Fri, 10 Feb, 2017 at 3:47 PM