I need to clear the content of the element , i am using the below logic
` if (Cypress.platform == "darwin") {
cy.get(".view-lines").type("{cmd}A{del}");
} else {
cy.log("inside different OS")
cy.get(".view-lines").type("{ctrl}A{del}");
}
`
Its working fine in Mac where i am developing the script , but its not working in testbed where the automation is running . which is “linux”
Is there any alternative for ctrl+a+del in linux..?
I have tried with different cypress ways to clear the element , which is not working. and eventually worked only with cmd+a+del in mac .