How to use the appium-fake-driver.FakeDriver function in appium-fake-driver

To help you get started, we’ve selected a few appium-fake-driver 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 / test / driver-specs.js View on Github external
function getDriverAndFakeDriver () {
      const appium = new AppiumDriver({});
      const fakeDriver = new FakeDriver();
      const mockFakeDriver = sinon.mock(fakeDriver);
      appium.getDriverAndVersionForCaps = function (/*args*/) {
        return {
          driver: function Driver () {
            return fakeDriver;
          },
          version: '1.2.3',
        };
      };
      return [appium, mockFakeDriver];
    }
    describe('createSession', function () {

appium-fake-driver

Description goes here.

Apache-2.0
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis