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.