How to use the geckodriver.start function in geckodriver

To help you get started, we’ve selected a few geckodriver 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 sneakypete81 / updatescanner / scripts / test-func.js View on Github external
const test = async function() {
  console.log('Starting Geckodriver...');
  geckodriver.start();

  console.log('Running functional tests...');

  try {
    childProcess.execFileSync(
      'poetry', ['run', 'pytest'],
      {cwd: FUNC_TEST_PATH, stdio: 'inherit'},
    );
  } finally {
    console.log('Stopping Geckodriver...');
    geckodriver.stop();
  }
};
github mobxjs / mobx-devtools / test / prepare.js View on Github external
const startBrowser = () => {
  switch (TARGET_BROWSER) {
    case 'chrome':
      chromedriver.start();
      return () => chromedriver.stop();
    case 'firefox':
      geckodriver.start();
      return () => geckodriver.stop();
    default:
      throw new Error(`${TARGET_BROWSER} browser driver is not configured`);
  }
};

geckodriver

Mozilla's Geckodriver for Node.js

MPL-2.0
Latest version published 22 hours ago

Package Health Score

80 / 100
Full package analysis