Didier Sampaolo
Didier Sampaolo

Reputation: 2813

While loop in CasperJS?

I've got a website with Ajax-loaded content. The content is showed in tabs, 20 items par page, with an Ajax link to load the 20 following items.

I'd like to run some tests as : "As long as there is a link to the next page, click it, then ... [do something]", then proceed to the next page (loop)

I can't know for sure how many pages I'll have to go through.

Is there a simple way to achieve this ? (ie something like a While loop in CasperJS)

Thank you very much!

Upvotes: 2

Views: 2160

Answers (1)

user1378912
user1378912

Reputation:

One option could be:

casperjs-goto

Hope it helps

Upvotes: 2

Related Questions