Summary

What we have learned in this chapter can be very useful in most of the applications developed using PhantomJS. More often than not, we will be creating applications to read and write configuration files that are essential to the inner workings of our applications. For implementing these, the FileSystem API can help us greatly. We can also do simple message logging by writing some debug information to a file, to help out in debugging and program tracing. In the next chapter we will learn more about how PhantomJS supports cookies, and how we can use them in our application.

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.