Skip to content
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

Return child process and add optional options to webdriver_standalone. #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

t1bb4r
Copy link

@t1bb4r t1bb4r commented Aug 13, 2016

I've used the following changes to make the webdriver_standalone function a lot more useful.

Node's child_process can't kill children process in an easy way. I found it a lot easier to just pipe 'q' to the webdriver's stdin.

My gulp task contains the following:

var webdriverServer = webdriver_standalone({stdio: ['pipe', 1, 2]}, () => {});
// Run tests
webdriverServer.stdin.write('q\n');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant