Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress Command Failing - cy.get() #71

Open
jsfinesse opened this issue Oct 2, 2024 · 11 comments
Open

Cypress Command Failing - cy.get() #71

jsfinesse opened this issue Oct 2, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@jsfinesse
Copy link
Contributor

Describe the bug
When the automation lands on the page - https://www.irctc.co.in/nget/booking/train-list, it calls the command -

cy.get(
`:nth-child(${index + 2}) > .bull-back > app-train-avl-enq > :nth-child(1) > :nth-child(7) > :nth-child(1)`)

Whichs ends in the error - AssertionError: Timed out retrying after 120000ms: Expected to find element: `:nth-child(2) > .bull-back > app-train-avl-enq > :nth-child(1) > :nth-child(7) > :nth-child(1)`, but never found it.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 129.0.6668.70 (Official Build) (64-bit)
@jsfinesse jsfinesse added the bug Something isn't working label Oct 2, 2024
@jsfinesse
Copy link
Contributor Author

At the page with the element visible but cy.get() is running unable to find it

image

@1CaptainPeroxide
Copy link

Same error here

@jsfinesse
Copy link
Contributor Author

I have added a PR with changes that fix this issue, @shivamguys can review it and check it is a valid fix.

Meanwhile @1CaptainPeroxide and others can use my fork's changes.

@1CaptainPeroxide
Copy link

I have added a PR with changes that fix this issue, @shivamguys can review it and check it is a valid fix.

Meanwhile @1CaptainPeroxide and others can use my fork's changes.

Its working fine

@shivamguys
Copy link
Owner

Thanks for looking into it, really appreciate your efforts, have merged the changes 👍 @jsfinesse

@shivamguys
Copy link
Owner

shivamguys commented Oct 2, 2024

By the way just asking have you guys booked some tatkal tickets with this @jsfinesse @1CaptainPeroxide

If yes could you tell is it worthwhile or not

@1CaptainPeroxide
Copy link

By the way just asking have you guys booked some tatkal tickets with this @jsfinesse @1CaptainPeroxide

If yes could you tell is it worthwhile or not

Its working fine, i have used it for normal tickets several times, I didn't need tatkal tickets till now, but it is able to book normal tickets in less than 30 seconds.

@1CaptainPeroxide
Copy link

The captcha part is just taking more time, otherwise its very fast. What can i do to improve captcha speed or i can use manual captcha?

@shivamguys
Copy link
Owner

I had once integrated google cloud vision apis for captchas processing that was very fast I am thinking 🤔 to re integrate that back again

@kumarsonungp
Copy link

I had once integrated google cloud vision apis for captchas processing that was very fast I am thinking 🤔 to re integrate that back again

i'll be waiting for this integration.

@jsfinesse
Copy link
Contributor Author

By the way just asking have you guys booked some tatkal tickets with this @jsfinesse @1CaptainPeroxide

If yes could you tell is it worthwhile or not

Yes, I tried booking today; it works, but I could book successfully only on the second try. The first try failed at the payment selection page due to IRCTC's request not being processed. That might have been caused by dynamic fare as I had opted for Premium Tatkal.

The major pain point is captcha solving. Its failure rate is quite high.

Thanks for the project, though, it really helped me out today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants