Hacker News new | past | comments | ask | show | jobs | submit login

Like this maybe? https://www.cypress.io/blog/2020/12/10/testing-the-anchor-li...

If that's not it keep looking. If there's a thing you want to do, odds are Gleb has a video or blog post about it.




The thing they do with posts.json, except dynamically from links discovered on a page. I did look, I don't think its possible.

Anyway its subjective, I don't like Cypress.


There's no way to search the current page for all elements of an `<a>` type, then through that list search for the one you want and call click on it?

I figure there must be a way to do that, but it's very possible I'm misunderstanding what you're trying to solve!


Basically what I wanted to write was a recursive broken link checker




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: