ajax - While loop in CasperJS? -


i've got website ajax-loaded content. content showed in tabs, 20 items par page, ajax link load 20 following items.

i'd run tests : "as long there link next page, click it, ... [do something]", proceed next page (loop)

i can't know sure how many pages i'll have go through.

is there simple way achieve ? (ie while loop in casperjs)

thank much!

one option be:

casperjs-goto

hope helps


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -