If a value for timeoutInterval is provided, PhantomJS will eventually stop utilizing cookies. phantom.addCookie() will return false (as will page.addCookie()).
The larger the timeoutInterval, the fewer suites can be run before cookie functionality fails.
With a timeoutInterval of 3,000, cookies fail around suite 22. With an interval of 10,000 they fail at around 7 suites.
I believe the issue stems from the number of times page.evaluate() is called, but I'm note sure.
If a value for timeoutInterval is provided, PhantomJS will eventually stop utilizing cookies. phantom.addCookie() will return false (as will page.addCookie()).
The larger the timeoutInterval, the fewer suites can be run before cookie functionality fails.
With a timeoutInterval of 3,000, cookies fail around suite 22. With an interval of 10,000 they fail at around 7 suites.
I believe the issue stems from the number of times page.evaluate() is called, but I'm note sure.