Skip to content

Commit 0e70f1b

Browse files
authored
Merge pull request #1022 from indutny/fix/readme-caveats
docs: add mention of `user-data-dir` driver arg
2 parents 891321b + 4b0f4c7 commit 0e70f1b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ For more information on how to configure mocha, please visit [mocha](https://moc
133133

134134
As stated in [issue #19](https://github.com/electron/spectron/issues/19), Spectron will not be able to start if your Electron app is launched using the `remote-debugging-port` command-line switch (i.e. `app.commandLine.appendSwitch('remote-debugging-port', <debugging-port-number>);`). Please make sure to include the necessary logic in your app's code to disable the switch during tests.
135135

136+
As mentioned in [issue #202](https://github.com/electron-userland/spectron/issues/202#issuecomment-632223955),
137+
`app.start()` promise won't resolve if the electron application calls
138+
`setPath('userData', path)`. Webdriver places a port file into the `userData`
139+
directory and needs to know where to look for it. The workaround is to pass
140+
`chromeDriverArgs: ['user-data-dir=/custom/userData/path']` to the `Application`
141+
constructor.
142+
136143
## Application API
137144

138145
Spectron exports an `Application` class that when configured, can start and

0 commit comments

Comments
 (0)