How to use driver-kraken - 1 common examples

To help you get started, we’ve selected a few driver-kraken 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 alibaba / rax / packages / driver-universal / src / index.js View on Github external
import { isWeex, isWeb, isKraken, isMiniApp, isWeChatMiniProgram } from 'universal-env';
import createDOMDriver from './dom';
import * as DriverMiniApp from 'driver-miniapp';
import * as DriverWeex from 'driver-weex';
import createKrakenDriver from 'driver-kraken';

let currentDriver;
if (isWeex) {
  currentDriver = DriverWeex;
} else if (isWeb) {
  currentDriver = createDOMDriver();
} else if (isKraken) {
  currentDriver = createKrakenDriver();
} else if (isMiniApp || isWeChatMiniProgram) {
  currentDriver = DriverMiniApp;
} else {
  throw new Error('Your environment was not supported by driver-universal.');
}

export default currentDriver;

driver-kraken

Kraken driver for Rax.

BSD-3-Clause
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis

Popular driver-kraken functions

Similar packages