Chapter 51


The Document Object Model (DOM) describes how the elements are organized in a document. In an HTML page, DOM refers to the organization of various buttons, input fields, etc. inside the page document. The various buttons, input fields, etc. are called the elements of the document. The DOM is used to access and update the contents of the document. The aspects of the DOM (such as its ­â€˜Elements’) may be addressed and manipulated within the syntax of the programming language in use. The public interface of a DOM is specified in its Application Programming Interface (API).

The DOM is a W3C (World Wide Web consortium) standard for accessing documents such as HTML and XML. As per W3C,

“The W3C Document Object ...

Get Agile Automation and Unified Funtional Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.