.net - PhantomJSDriver ignores local storage path -
i using phantomjs .net bindings in latest stable version (nuget). trying have multiple instances of phantom running @ same time. works fine, instances share local storage underneath.
as far understand happens because instances use same folder store local storage data. trying change unique folder following code:
var phantomjsdriverservice = phantomjsdriverservice.createdefaultservice(); phantomjsdriverservice.localstoragepath = @"c:/temp/localstorage"; this.driver = new phantomjsdriver(phantomjsdriverservice);
phantom ignores setting , keeps using default folder. tried several combinations, different slashes, different folders, permissions.. non of them worked. has used different local storage path phantom?
is there other way have multiple instances of phantom running independently?
if you're using phantomjs on linux x64 can test binary has localstoragepath fix included: https://github.com/patrickhuetter/phantomjs/releases/tag/1.9.8-fixedstoragepath
if you're using phantomjs on operating system checkout fork , compile on plattform. https://github.com/patrickhuetter/phantomjs/tree/localstoragepathfix
phantomjs 2.0 has fix included, can go official binary if you're using 2.0 version or newer.
Comments
Post a Comment