Closed drtechie closed 9 months ago
Will merge this after checking any test cases for the sample stations? @drtechie
@shivamguys made more improvements, edited the PR description too.
Will look into it, busy schedules these days
On Sun, 19 Nov, 2023, 11:16 pm Mithun James, @.***> wrote:
@shivamguys https://github.com/shivamguys made more improvements, edited the PR description too.
— Reply to this email directly, view it on GitHub https://github.com/shivamguys/irctc-cypress-automation/pull/8#issuecomment-1817928630, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAX65K2HP4H2UIVZL4CZMTYFJAWPAVCNFSM6AAAAAA7HEKRR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXHEZDQNRTGA . You are receiving this because you were mentioned.Message ID: @.***>
performing a live run with this.....i dont know but taking risk
suspect something will mess with this line cy.get('div.h_head1', {timeout: 300000}).should('include.text', exactTimeToOpen)
@drtechie this manual captcha interaction is awesome thanks a ton for improving this....
@shivamguys login around 9.57 or so and wait for the click to happen at exactly 10 AM. Irctc servers and login sessions are so unreliable. Good luck. 🤞🏾
thanks buddy @drtechie
cy.get('div.h_head1', {timeout: 300000}).should('include.text', exactTimeToOpen)
That line is to wait for the clock to turn 10 AM. Hope it works. 😄
yup
trying now running the script @drtechie
@drtechie suspected worked
theres a problem
How did you reach this page? The wait was on the train search list page. 🤔
yup it clicked exactly at 10 but the call was still waiting for this cy.get('div.h_head1', {timeout: 300000}).should('include.text', exactTimeToOpen)
this wont proceed ahead right because even one second after 10:00:01 would give the execution back to that function as we are performing a recursion over there right .... and after a second execution would still be waiting to match the exact time 10:00:00
and it was waiting and that passenger page opened and i had to fill the details manually then.
However at last i faced server issue of irctc and i had to then book manually for 2AC at 10:09 luckily i got it.....
Added Boarding station option
Ensure the click is 10 AM / 11 AM when booking opens.
Option for manual CAPTCHA entry
Bug fix