How to use browserstack-local - 10 common examples

To help you get started, we’ve selected a few browserstack-local 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 aurelia / aurelia / test / browserstack / browserstack.conf.ts View on Github external
return new Promise(function(resolve, reject){
      // eslint-disable-next-line @typescript-eslint/camelcase
      exports.bs_local = new browserstack.Local();
      exports.bs_local.start({'key': exports.config.key }, function(error) {
        if (error) return reject(error);
        console.log('Connected. Now testing...');

        resolve();
      });
    });
  },
github reactioncommerce / reaction / tests / runner / browserstack.conf.js View on Github external
return new Promise(function (resolve, reject) {
      exports.bsLocal = new browserstack.Local();
      exports.bsLocal.start({ key: exports.config.key }, function (error) {
        if (error) return reject(error);
        // console.log("Connected. Now testing...");
        resolve();
      });
    });
  },
github Mapwize / mapwize-ui-js / tests / conf / browserstack.conf.js View on Github external
return new Promise(function (resolve, reject) {
      exports.bs_local = new browserstack.Local();
      exports.bs_local.start({ 'key': exports.config.key, 'force': true }, function (error) {
        if (error) return reject(error);

        console.log('Connected. Now testing...');
        resolve();
      });
    });
  },
github Alfresco / generator-ng2-alfresco-component / test / conf / local.conf.js View on Github external
return new Promise(function (resolve, reject) {
      exports.bs_local = new browserstack.Local();
      exports.bs_local.start({'key': exports.config.commonCapabilities['browserstack.key']}, function (error) {
        if (error) return reject(error);
        console.log('Connected. Now testing...');

        resolve();
      });
    });
  },
github onfido / onfido-sdk-ui / test / js-webdriver / config.js View on Github external
return new Promise(((resolve, reject) => {
      exports.bs_local = new browserstack.Local();
      exports.bs_local.start(
        {
          'key': exports.config.key,
          'force': 'true'
        }
        , (error) => {
          if (error) return reject(error);
          console.log('Connected. Now testing...');
          resolve();
      });
    }));
  },
github cloudfoundry / stratos / src / test-e2e / browserstack-helper.js View on Github external
return new Promise(function (resolve, reject) {
        exports.bs_local = new browserstack.Local();
        exports.bs_local.start({'key': config.capabilities['browserstack.key'] }, function (error) {
          if (error) return reject(error);
          console.log('BrowserStack Connected. Now testing...');

          psnode.lookup({command: 'BrowserStackLocal'}, function (err, list) {
            exports.bs_local_processes = list;
            resolve();
          });
          });
      })
    };
github style-tools / async / test / specs / browserstack-tests.js View on Github external
before(function(done) {

                        bsLocal = new browserstack.Local();

                        bsLocal.start({
                            'key': caps['browserstack.key']
                        }, function(error) {
                            if (error) done(error);

                            driver = buildDriver(caps);
                            done();
                        });
                    });
github subsecondtdd / todo-subsecond / test_support / BrowserStackTodoList.js View on Github external
async start() {
    this.browserstackLocal = new browserstack.Local()
    await new Promise((resolve, reject) => {
      this.browserstackLocal.start({ key: process.env.BROWSERSTACK_KEY }, () => {
        resolve()
      })
    })
    await super.start()
  }
github KingMario / packages / e2e / protractor.conf.js View on Github external
return new Promise(function (resolve, reject) {
      exports.bs_local = new browserstack.Local()
      exports.bs_local.start({
        key: browserstackKey,
        force: true
      }, function (error) {
        if (error) return reject(error)
        console.log('Connected. Now testing...')

        resolve()
      })
    })
  },
github browserstack / nightwatch-browserstack / scripts / local.globals.js View on Github external
beforeEach : function(browser, done) {
    console.log("Connecting local");
    bs_local = new browserstack.Local();
    bs_local.start({'key': browser.options.desiredCapabilities['browserstack.key'] }, function(error) {
      if (error) return done(error);

      console.log('Connected. Now testing...');
      done();
    });
  },

browserstack-local

Nodejs bindings for BrowserStack Local

MIT
Latest version published 1 year ago

Package Health Score

53 / 100
Full package analysis

Popular browserstack-local functions