segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.54k stars 1.08k forks source link

Looping with vo and many iterations #1551

Open liondm opened 5 years ago

liondm commented 5 years ago

Hi,

Looping in Nightmare.js is already covered off in many other tickets, #533 and #522 for example. I can get a loop to work with vo, like in the #533 example, however, when i gets very large the Electron browser gets very slow (I think because of memory shortages) and times out. I want to loop over several thousand iterations, so what I tried to do was launch Nightmare in a For Loop for the first 100, say, and then kill Nightmare, and launch again for the second 100. But it does not work. Do you have any ideas?