From eec279655789cb07e135093fa24b038244acc85f Mon Sep 17 00:00:00 2001 From: Shivam Pandey Date: Wed, 10 Apr 2024 20:20:40 +0530 Subject: [PATCH] adding el[0].innerText.includes('Enter Captcha') case when irctc for few seconds do not displays captcha after passing and then after few seconds move to next page --- cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 504acfd..067dc2e 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -138,7 +138,7 @@ function solveCaptcha() { } // Check whether we are at reviewBooking stage or not if yes keep on solving captcha - if (el[0].innerText.includes('Your ticket will be sent to') && !(el[0].innerText.includes('Please Wait...'))) { + if (el[0].innerText.includes('Your ticket will be sent to') && !(el[0].innerText.includes('Please Wait...')) && (el[0].innerText.includes('Enter Captcha'))) { if (MANUAL_CAPTCHA) {