I want to click on an element by XPATH / ID and not the default cypress locator, is it possible?
In selenium I can use find element by XPATH for example:
#hdtb-msb-vis is an ID-selector and .category is a class-selector. But you should be able to select purely by the class-selector
#hdtb-msb-vis
.category
cy.get('.category') .click()
But if that class is not unique you can click it via the ID and then the class:
cy.get('#hdtb-msb-vis') .find('.category') .click()