DOM

Working with Document
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 met...
Fri, 12 Feb, 2016 at 11:45 AM
Finding Elements
JxBrowser DOM API provides functionality that can be used for finding HTML elements on loaded web page by different conditions. The following sample code de...
Sun, 17 Jan, 2016 at 5:09 PM
Element Attributes
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.dom.By; import com.teamdev.jxbrowser.chromium.dom.DOMDocument; ...
Tue, 5 Jan, 2016 at 11:52 PM
Creating Element & Text Node
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.dom.By; import com.teamdev.jxbrowser.chromium.dom.DOMDocument; ...
Tue, 5 Jan, 2016 at 11:53 PM
Setting Node Value
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.dom.By; import com.teamdev.jxbrowser.chromium.dom.DOMDocument; ...
Tue, 5 Jan, 2016 at 11:53 PM
Select & Option Elements
JxBrowser DOM API allows working with HTML SELECT and OPTION elements. To work with SELECT element, the DOMSelectElement class is used. Let's see how t...
Sun, 17 Jan, 2016 at 5:10 PM
Selecting CheckBox
To programmatically select/unselect HTML input type=checkbox element use the DOMInputElement.setChecked(boolean checked) method. The following sample demons...
Wed, 6 Jan, 2016 at 5:10 PM
Getting Selected Text
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.swing.BrowserView; import javax.swing.*; import java.awt.*; ...
Tue, 5 Jan, 2016 at 11:55 PM
Simulating Click
JxBrowser 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 make su...
Sun, 17 Jan, 2016 at 5:10 PM
DOM Events
Each DOMNode implements DOMEventTarget interface that provides methods for registering DOM events. You can register DOM listener to receive DOM events such ...
Mon, 29 Feb, 2016 at 12:11 PM
XPath
JxBrowser DOM API provides functionality that allows evaluating XPath expressions. You can evaluation XPath expression in scope of DOMDocument or specified ...
Fri, 12 Feb, 2016 at 11:46 AM
Query Selector
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.dom.By; import com.teamdev.jxbrowser.chromium.dom.DOMDocument; ...
Tue, 5 Jan, 2016 at 11:53 PM
Working with Form
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.dom.By; import com.teamdev.jxbrowser.chromium.dom.DOMDocument; ...
Tue, 5 Jan, 2016 at 11:54 PM
Scrolling Document
The following approach demonstrates how you can stroll displayed web page (document) at specified position using JavaScript:   import com.teamdev.jxbro...
Wed, 19 Oct, 2016 at 6:00 PM
Finding Node at Point
  import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.dom.DOMNodeAtPoint; import com.teamdev.jxbrowser.chromium.events...
Tue, 5 Jan, 2016 at 11:54 PM
Getting Element Bounds
Sometimes it might be useful to get information about location and size of a specific HTML Element on the loaded web page relative to the top-left of t...
Thu, 15 Sep, 2016 at 5:05 PM
Injecting CSS
Since 6.14 version JxBrowser provides API that allows injecting custom style sheet (CSS) into every web page loaded in the Browser instance. The following e...
Tue, 11 Apr, 2017 at 12:29 PM
Listening to the Сontent Сhanges
This example demonstrates how to use JavaScript MutationObserver in combination with JavaScript Java Bridge API. The goal of this example is to transmit eve...
Fri, 2 Feb, 2018 at 3:20 PM