shivamguys / irctc-cypress-automation

Tatkal and Normal train Booking Automation in 1 Minute ✔️ Signing in with your username and password. ✔️ Auto Upgradation Enabled. ✔️ Filling Captchas and retrying untill success. ✔️ Support for Food Choices, Seats Preferences. ✔️ Payment Gateway Automation (Paying With UPI ID OR QR Code).
92 stars 142 forks source link

load event not firing in case IRCTC Scripts And StyleSheets take some time to load #34

Closed shivamguys closed 4 months ago

shivamguys commented 4 months ago

Describe the bug

despite page half being loaded but scripts and stylesheets takes some time to load and thus causing load event error

Screenshots image

shivamguys commented 4 months ago
describe('IRCTC TATKAL BOOKING', () => {
  it('Tatkal Booking Begins......', () => {
    // Catching Load Event Exception..
    cy.on('fail', (err, runnable) => {
      if (String(err).includes('Your page did not fire its `load` event')) {
        return true
      }
      else {
        return false

      }
    })

Fixed.....