Skip to content

Commit

Permalink
case for Unable to process current transaction added
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 21, 2024
1 parent 32dfb79 commit 4595dab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function performLogin(LOGGED_IN) {
}


let MAX_ATTEMPT = 100
let MAX_ATTEMPT = 120
// function to solveCaptcha after logging in


Expand All @@ -127,6 +127,15 @@ function solveCaptcha() {

cy.wait(500)
cy.get('body').should('be.visible').then((el) => {

if (el[0].innerText.includes('Unable to process current transaction') && el[0].innerText.includes('Payment Mode')) {

cy.task("log", "Unable to process current transaction...")
cy.get('.train_Search').click()
cy.wait(1000)

}

if (el[0].innerText.includes('Payment Methods')) {

cy.task("log", "CAPTCHA .... SOLVED")
Expand Down

0 comments on commit 4595dab

Please sign in to comment.