Clear localstorage with Casperjs

前端 未结 3 407
温柔的废话
温柔的废话 2021-01-14 23:45

I\'m using casperjs to do some testings of a backbonejs application using localstorage.

My problem is that I can not clear the localstorage when testing with casperj

3条回答
  •  再見小時候
    2021-01-15 00:28

    I found workaround for this problem by deleting file *.localstorage in one of the following directories:

    Windows c:\Users\YOUR_USER\AppData\Local\Ofi Labs\PhantomJS\

    Mac OS X: /Users/YOUR_USER/Library/Application Support/Ofi Labs/PhantomJS

    Linux: /home/YOUR_USER/.local/share/data/Ofi Labs/PhantomJS

提交回复
热议问题