Summary

Cookies are very useful in some web applications. They are most commonly used to track user activity or choice while using the application. We can also create more test scenarios based on cookies. This will depend on how cookies are used in web applications. PhantomJS provides a trivial API for cookie handling, but it does the job for most cases.

Get Getting Started with PhantomJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.