Skip to content

Commit

Permalink
adding el[0].innerText.includes('Enter Captcha') case when irctc for …
Browse files Browse the repository at this point in the history
…few seconds do not displays captcha after passing and then after few seconds move to next page
  • Loading branch information
shivamguys committed Apr 10, 2024
1 parent 3a10172 commit eec2796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eec2796

Please sign in to comment.