Posts

Showing posts from November, 2021

Cypress

 Cypress  Its   is a free and open source automation tool, MIT-licensed and written in  JavaScript .  -------------------------------------------------------------------------------------------------------------------- Implicit assertion ( it appears on LOGs every time ) ---------------------------------------------------------------------------- cy.url().should('include','theExpectedText')   // to check the particular test inside the respective URL should-contain     .should('contain),'any text') should-have        .should('have.class','abc')     have.text     have.html should-be    .should('be.visible')     be.enabled     be.selected     be.disabled     be.focused = have.focus // We can use two condition to check cy.get('input[name=userName]').should('be.visible').should('be.enabled').type('Hello World') should-equal    .invoke('attr','id'

Useful Command Promt in Automation

dir    / / to check directory dir /b //to get list of files inside that folder