How to use the webdriverio.bs_local function in webdriverio

To help you get started, we’ve selected a few webdriverio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github larryg01 / klassi-js / runtime / remotes / browserstackLocal.js View on Github external
console.log(
  `\nExpecting a player build served at port: ${process.env.http || '8080'}\n`
);

// start browserstack-local for testing
console.log('Connecting local to browserstack automate...');
let bs_local_args = {
  key: key,
  localIdentifier: localIdentifier,
  force: true,
  logfile: './browserstackLocal.log'
};

bs_local = new browserstacklocal.Local();
wdio.bs_local = bs_local;

// bs_local.stop(function() {
//   console.log('Stopped BrowserStackLocal');
// });

// start: function() {

bs_local.start(bs_local_args, async function(err) {
  if (err) {
    console.log('its done and not working', err.message);
  }
  console.log(
    'Connected.\n\nNight gathers, and now my watch begins..\nI am the sword in the darkness.\n'
  );
  // check if BrowserStack local instance is running
  console.log(

webdriverio

Next-gen browser and mobile automation test framework for Node.js

MIT
Latest version published 20 hours ago

Package Health Score

100 / 100
Full package analysis