Closed drtechie closed 10 months ago
Thanks A Lot Man, for the improvements and Typos 😁 By the way did you tried how fast is the Booking Time...? Your Experience.... I will merge this once i am back home in a few hours.....
@shivamguys I haven't booked a real ticket yet. I reached the payment QR code.
At 10 AM and 11 AM, the servers behave very erratically. The entry and selection is definitely faster than a human being. I would say 80% of the time, the automation works fine.
Sometimes the source station selection results are slow, the script gets stuck. CAPTCHA entries are a hit or miss sometimes. Google misses some obvious ones.
I realized I had to handle the FOOD scenario better. Some trains don't have it and some do.
Please don't merge this now. Marking the PR as WIP.
yes, Irctc servers are way too messy during Tatkal times. I was thinking of scheduling the script daily at 10 and 11 to get better data and everything would be recorded in Cypress dashboards....
@shivamguys do check the PR. I have added a condition to handle food scenario.
Scheduling script is a nice idea. It will be better to pass the script at the payment selection page if it's running under Cypress dashboard environment.
Have merged it. Would be scheduling it standalone...
On Wed, 25 Oct, 2023, 2:08 pm Mithun James, @.***> wrote:
@shivamguys https://github.com/shivamguys do check the PR. I have added a condition to handle food scenario.
Scheduling script is a nice idea. It will be better to pass the script at the payment selection page if it's running under Cypress dashboard environment.
— Reply to this email directly, view it on GitHub https://github.com/shivamguys/irctc-cypress-automation/pull/3#issuecomment-1778785931, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAX65IVXIJMQCQN6QYGZ4TYBDFZDAVCNFSM6AAAAAA6KBPC56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYG44DKOJTGE . You are receiving this because you were mentioned.Message ID: @.***>
Cypress
dayjs
to reliably convert dates. The earlier code gaveTue, 18 Oct
which wasn't right. Moved theformatDate
function to a common util.nth-child(5)
selected DUTY PASS instead of TATKAL. Changes tonth-child(6)
cy.type
to input val change. This ensures the text field value is changed in one shot (saving more time).CAPTCHA server
Misc