How to use the appium-chromedriver.STATE_STOPPED function in appium-chromedriver

To help you get started, we’ve selected a few appium-chromedriver 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 appium / appium / lib / devices / android / android-hybrid.js View on Github external
this.chromedriver.on(Chromedriver.EVENT_CHANGED, function (msg) {
    if (msg.state === Chromedriver.STATE_STOPPED) {
      // bind our stop/exit handler, passing in context so we know which
      // one stopped unexpectedly
      this.onChromedriverStop(context);
    }
  }.bind(this));
  this.chromedriver.start(caps).nodeify(function (err) {
github appium / appium-android-driver / test / unit / commands / context-specs.js View on Github external
it('should handle chromedriver event with STATE_STOPPED state', async function () {
      await driver.startChromedriverProxy('WEBVIEW_1');
      await driver.chromedriver.emit(Chromedriver.EVENT_CHANGED,
        {state: Chromedriver.STATE_STOPPED});
      driver.onChromedriverStop.calledWithExactly('WEBVIEW_1').should.be.true;
    });
    it('should ignore events if status is not STATE_STOPPED', async function () {
github appium / appium-android-driver / lib / commands / context.js View on Github external
this.chromedriver.on(Chromedriver.EVENT_CHANGED, (msg) => {
    if (msg.state === Chromedriver.STATE_STOPPED) {
      this.onChromedriverStop(CHROMIUM_WIN);
    }
  });
github appium / appium / lib / devices / android / chrome.js View on Github external
this.chromedriver.on(Chromedriver.EVENT_CHANGED, function (msg) {
    if (msg.state === Chromedriver.STATE_STOPPED) {
      logger.info("Chromedriver stopped unexpectedly on us, shutting down " +
                  "then calling back up with the on-die callback");
      this.onChromedriverStop(this.onDieCb);
    }
  }.bind(this));
  this.chromedriver.start(caps).nodeify(function (err) {

appium-chromedriver

Node.js wrapper around chromedriver.

Apache-2.0
Latest version published 3 days ago

Package Health Score

80 / 100
Full package analysis