Skip to content

Commit

Permalink
removing cy.task logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 10, 2024
1 parent 8f53f0c commit 79ef7e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ function performLogin(LOGGED_IN) {
// get captcha value base64 starts---------
cy.get('.captcha-img').invoke('attr', 'src').then((value) => {
// api call to retrieve captcha value
cy.task("log", `python3 irctc-captcha-solver/app.py "${value}"`)

cy.exec(`python3 irctc-captcha-solver/app.py "${value}"`).then((result) => {
cy.get('#captcha').type(result.stdout).type('{enter}');
// cy.contains('SIGN IN').click()
cy.task("log", `stdout-> "${result.stdout}"`)

cy.get('body').then((el) => {
if (el[0].innerText.includes('Invalid Captcha')) {
Expand Down

0 comments on commit 79ef7e1

Please sign in to comment.