There might be cases where we need to call python scripts within our cypress test workflow.
In node.js world we can do this using the child_process but with Cypress we can just use cy.exec command to execute any system command.
cy.exec(“python3 <filePath>”) > this will execute the command, and the executed command result can be collected using then() chaining command.
Below is the example


Leave a comment