Skip to content

Commit

Permalink
adding el[0].innerHTML.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 eec2796 commit 365f73d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ 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...')) && (el[0].innerText.includes('Enter Captcha'))) {
console.log(el)

if (el[0].innerText.includes('Your ticket will be sent to') && !(el[0].innerText.includes('Please Wait...')) && (el[0].innerHTML.includes('Enter Captcha'))) {


if (MANUAL_CAPTCHA) {
Expand Down

0 comments on commit 365f73d

Please sign in to comment.