electron-userland / spectron

DEPRECATED: 🔎 Test Electron apps using ChromeDriver
http://electronjs.org/spectron
MIT License
1.68k stars 229 forks source link

Spectron always creates new instance of partitions of electron app #976

Open rik12s opened 3 years ago

rik12s commented 3 years ago

Generally, when we use it manually there is a fixed path where dev team has assigned. For eg: /Application Support//folder used for storing data behind the app.

image

But every time when app is launched using spectron like:

image

Data which should have been saved cannot be accessed as everytime new instance created some directory like:

/private/var/folders/4f/frtzmcsd5yv9zf9p2whcfgqc0000gr/T/.org.chromium.Chromium.XKQ5Vc/

So basically highlighted part is changed after every execution and creates the new same folder structure as i attached in image1.

Is there any way where i can configure to use the same partiton which were used when we manually make the app up?

Or anyway to get the information at runtime, so that i can copy few files to get the data reflected in my app immediately rather then processing everytime.