unable to access html element using cypress

  automation, cypress, javascript

I am trying to test the login functionalities using cypress, but for some reason I am unable to access the input text-box.
It shows unable to find the get the element

describe("User authentication", () => {
    beforeEach(() => {
      cy.visit("https://alpha.vetdrive.app/");
     
    });
    it("it takes to the correct page", () => {
   
      cy.get('[data-field=password]')
      
    });
    
  });

Source: Ask Javascript Questions

LEAVE A COMMENT