chrome.js 902 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 'use strict'
  2. /* eslint-disable jsdoc/valid-types */
  3. /** @type WebdriverIO.Config */
  4. const config = {
  5. hostname: 'chromedriver',
  6. path: '/',
  7. capabilities: [
  8. {
  9. // Set maxInstances to 1 if screen recordings are enabled:
  10. // maxInstances: 1,
  11. browserName: 'chrome',
  12. 'goog:chromeOptions': {
  13. // Disable headless mode if screen recordings are enabled:
  14. args: ['--headless', '--window-size=1440,900']
  15. }
  16. }
  17. ],
  18. logLevel: 'warn',
  19. reporters: ['spec'],
  20. framework: 'mocha',
  21. mochaOpts: {
  22. timeout: 60000
  23. },
  24. specs: ['test/specs/**/*.js'],
  25. maximizeWindow: true,
  26. screenshots: {
  27. saveOnFail: true
  28. },
  29. videos: {
  30. enabled: false,
  31. resolution: '1440x900',
  32. startDelay: 500,
  33. stopDelay: 500
  34. },
  35. assetsDir: '/home/webdriver/assets/',
  36. baseUrl: 'http://example'
  37. }
  38. exports.config = Object.assign({}, require('../hooks'), config)