Continuous Test Orchestration And Execution Platform Online

Perform automated and live-interactive testing on 3000+ real desktop and mobile devices online.

What is DOM in Cypress?

The Dom method is a function that allows you to create an element programmatically in the browser. The Dom method makes it easier for a tester to write tests in Cypress.

A Document Object Model (DOM) is a way for JavaScript to see the data on a page. It includes the formatting of HTML, XML, or XHTML and the browser state. This means you can add classes to these DOM elements using CSS or interact with them using Javascript.

Cypress.dom().methods() is a collection of DOM-related helper methods. Cypress uses these methods internally in nearly every built-in command, but you may need to be aware of their existence because they are not documented below.

LambdaTest

Test your websites, web-apps, or mobile apps seamlessly with LambdaTest.

Start Free Testing
LambdaTest

Earn resume-worthy Selenium certifications that help you land a top job.

Learn More
LambdaTest

Test your web or mobile apps

Test orchestration and execution cloud of 3000+ browsers and OS

Support

24/7 support

Security

Enterprise grade security

Cloud

Fastest test execution cloud