Does PhantomJS store any persistent files by default?

后端 未结 1 1398
抹茶落季
抹茶落季 2020-12-21 22:25

As a new user to PhantomJS I want to be sure that I understand how PhantomJS handles any persistence of data that it accumulates from a HTTP request.

My question is:

相关标签:
1条回答
  • 2020-12-21 22:38

    Yes, there is one type that is saved by default and this is the localStorage database.

    • On Windows 7: C:\Users\<user>\AppData\Local\Ofi Labs\PhantomJS
    • On Windows 8: C:\Ofi Labs\PhantomJs
    • On Linux: /home/<user>/.qws/share/data/Ofi Labs/PhantomJS

    Everything else is saved only when you add the commandline options. The disk cache is inside of the above directory and the cookie file path has to be set explicitly.

    So it means that if the web application that you test doesn't use localStorage then you can run PhantomJS in parallel.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题