-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide utility function to allow using this service without the testrunner #412
Comments
@christian-bromann this sounds somewhat related to #331 (the above bug in particular), do you think this feature would include starting electron without a binary or is it completely separate? |
@goosewobbler these features are different. #331 is about allowing users to test an Electron app without bundling it. This issue describes a feature where a user can use this service without having to run the wdio testrunner. Imagine a Node.js script like this: import { startSession } from 'wdio-electron-service`
const ide = await startSession({
electronVersion: '1.2.3',
appBinaryPath: './path/to/bundled/electron/app.exe',
appArgs: ['foo', 'bar=baz'],
}) where |
Got it, I was pretty sure they were separate but also had an optimistic thought that one might solve the other...perhaps if the testrunner is the root cause of the unbundled app not receiving args...let's see. |
Thanks for the work @goosewobbler - I released the docs: https://webdriver.io/docs/desktop-testing/electron/standalone |
This is inspired by a conversation in webdriverio/webdriverio#12128
It would be nice to provide a way to allow users to use this service in a normal Node.js script without having to use the testrunner. I could see a custom
remote
method taking the same parameters as thewebdriverio
version would do but internally would run all the hooks before returning the instance. Note thatbeforeCommand
orafterCommand
work in standalone too.The text was updated successfully, but these errors were encountered: