What are Cypress Locators?
Hi @junior.milton,
Cypress locators are used for locating elements in the HTML Document Object Model (DOM). Locators are generally classified in the following categories:
-
tags β Locate WebElements using HTML tags
-
ids β Locate WebElements using the ID of the elements
-
name β Locate WebElements using name attribute that is set for elements (especially form input elements)
-
class β Locate WebElements by class value
-
links β Locate WebElements by links text property
-
attributes β Locate WebElements by one or multiple sets of attributes
1 Like