browserstack / browserstack-local-nodejs

NodeJS bindings for BrowserStack Local
https://www.browserstack.com
MIT License
71 stars 56 forks source link

Include example on how to use this with Mocha/Se #26

Open jankcat opened 7 years ago

jankcat commented 7 years ago

Included an example on how to do this with Mocha/Se WebDriver JS. This can save someone much time, as it showcases the need for a done() callback in the test.before hook. This is necessary to work with the async nature of this browserstack-local module, otherwise a race condition is present between the local binary being run and the webdriver attempting to connect to it.