opts.js 7.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const binaries_1 = require("../binaries");
  4. const cli_1 = require("../cli");
  5. const config_1 = require("../config");
  6. exports.OUT_DIR = 'out_dir';
  7. exports.SELENIUM_PORT = 'seleniumPort';
  8. exports.APPIUM_PORT = 'appium-port';
  9. exports.AVD_PORT = 'avd-port';
  10. exports.IGNORE_SSL = 'ignore_ssl';
  11. exports.PROXY = 'proxy';
  12. exports.ALTERNATE_CDN = 'alternate_cdn';
  13. exports.STANDALONE = 'standalone';
  14. exports.CHROME = 'chrome';
  15. exports.IE = 'ie';
  16. exports.IE32 = 'ie32';
  17. exports.IE64 = 'ie64';
  18. exports.EDGE = 'edge';
  19. exports.GECKO = 'gecko';
  20. exports.ANDROID = 'android';
  21. exports.IOS = 'ios';
  22. exports.VERSIONS_CHROME = 'versions.chrome';
  23. exports.VERSIONS_GECKO = 'versions.gecko';
  24. exports.VERSIONS_STANDALONE = 'versions.standalone';
  25. exports.VERSIONS_IE = 'versions.ie';
  26. exports.VERSIONS_ANDROID = 'versions.android';
  27. exports.VERSIONS_APPIUM = 'versions.appium';
  28. exports.CHROME_LOGS = 'chrome_logs';
  29. exports.LOGGING = 'logging';
  30. exports.ANDROID_API_LEVELS = 'android-api-levels';
  31. exports.ANDROID_ARCHITECTURES = 'android-archs';
  32. exports.ANDROID_PLATFORMS = 'android-platorms';
  33. exports.ANDROID_ACCEPT_LICENSES = 'android-accept-licenses';
  34. exports.AVDS = 'avds';
  35. exports.AVD_USE_SNAPSHOTS = 'avd-use-snapshots';
  36. exports.STARTED_SIGNIFIER = 'started-signifier';
  37. exports.SIGNAL_VIA_IPC = 'signal-via-ipc';
  38. exports.DETACH = 'detach';
  39. exports.QUIET = 'quiet';
  40. exports.VERBOSE = 'verbose';
  41. exports.ALREADY_OFF_ERROR = 'already-off-error';
  42. /**
  43. * The options used by the commands.
  44. */
  45. var opts = {};
  46. opts[exports.OUT_DIR] = new cli_1.Option(exports.OUT_DIR, 'Location to output/expect', 'string', config_1.Config.getSeleniumDir());
  47. opts[exports.SELENIUM_PORT] =
  48. new cli_1.Option(exports.SELENIUM_PORT, 'Optional port for the selenium standalone server', 'string', '4444');
  49. opts[exports.APPIUM_PORT] =
  50. new cli_1.Option(exports.APPIUM_PORT, 'Optional port for the appium server', 'string', '4723');
  51. opts[exports.AVD_PORT] = new cli_1.Option(exports.AVD_PORT, 'Optional port for android virtual devices. See mobile.md for details', 'number', 5554);
  52. opts[exports.IGNORE_SSL] = new cli_1.Option(exports.IGNORE_SSL, 'Ignore SSL certificates', 'boolean', false);
  53. opts[exports.PROXY] = new cli_1.Option(exports.PROXY, 'Proxy to use for the install or update command', 'string');
  54. opts[exports.ALTERNATE_CDN] = new cli_1.Option(exports.ALTERNATE_CDN, 'Alternate CDN to binaries', 'string');
  55. opts[exports.STANDALONE] = new cli_1.Option(exports.STANDALONE, 'Install or update selenium standalone', 'boolean', binaries_1.Standalone.isDefault);
  56. opts[exports.CHROME] =
  57. new cli_1.Option(exports.CHROME, 'Install or update chromedriver', 'boolean', binaries_1.ChromeDriver.isDefault);
  58. opts[exports.GECKO] = new cli_1.Option(exports.GECKO, 'Install or update geckodriver', 'boolean', binaries_1.GeckoDriver.isDefault);
  59. opts[exports.IE] = new cli_1.Option(exports.IE, 'Install or update 32-bit ie driver', 'boolean', binaries_1.IEDriver.isDefault32);
  60. opts[exports.IE32] =
  61. new cli_1.Option(exports.IE32, 'Install or update 32-bit ie driver', 'boolean', binaries_1.IEDriver.isDefault32);
  62. opts[exports.IE64] = new cli_1.Option(exports.IE64, 'Update: install or update 64-bit IE driver. Start: use installed x64 IE driver.', 'boolean', binaries_1.IEDriver.isDefault64);
  63. opts[exports.EDGE] = new cli_1.Option(exports.EDGE, 'Use installed Microsoft Edge driver', 'string', 'C:\\Program Files (x86)\\Microsoft Web Driver\\MicrosoftWebDriver.exe');
  64. opts[exports.ANDROID] = new cli_1.Option(exports.ANDROID, 'Update/use the android sdk', 'boolean', binaries_1.AndroidSDK.isDefault);
  65. opts[exports.IOS] = new cli_1.Option(exports.IOS, 'Update the iOS sdk', 'boolean', false);
  66. opts[exports.VERSIONS_CHROME] = new cli_1.Option(exports.VERSIONS_CHROME, 'Optional chrome driver version (use \'latest\' to get the most recent version)', 'string', 'latest');
  67. opts[exports.VERSIONS_GECKO] =
  68. new cli_1.Option(exports.VERSIONS_GECKO, 'Optional gecko driver version', 'string', 'latest');
  69. opts[exports.VERSIONS_ANDROID] = new cli_1.Option(exports.VERSIONS_ANDROID, 'Optional android sdk version', 'string', binaries_1.AndroidSDK.versionDefault);
  70. opts[exports.VERSIONS_STANDALONE] = new cli_1.Option(exports.VERSIONS_STANDALONE, 'Optional seleniuim standalone server version (use \'latest\' to get the most recent version)', 'string', 'latest');
  71. opts[exports.VERSIONS_APPIUM] =
  72. new cli_1.Option(exports.VERSIONS_APPIUM, 'Optional appium version', 'string', binaries_1.Appium.versionDefault);
  73. opts[exports.VERSIONS_IE] = new cli_1.Option(exports.VERSIONS_IE, 'Optional internet explorer driver version (use \'latest\' to get the most recent version)', 'string', 'latest');
  74. opts[exports.CHROME_LOGS] = new cli_1.Option(exports.CHROME_LOGS, 'File path to chrome logs', 'string', undefined);
  75. opts[exports.LOGGING] = new cli_1.Option(exports.LOGGING, 'File path to logging properties file', 'string', undefined);
  76. opts[exports.ANDROID_API_LEVELS] = new cli_1.Option(exports.ANDROID_API_LEVELS, 'Which versions of the android API you want to emulate', 'string', binaries_1.AndroidSDK.DEFAULT_API_LEVELS);
  77. opts[exports.ANDROID_ARCHITECTURES] = new cli_1.Option(exports.ANDROID_ARCHITECTURES, 'Which architectures you want to use in android emulation. By default it will try to match os.arch()', 'string', binaries_1.AndroidSDK.DEFAULT_ARCHITECTURES);
  78. opts[exports.ANDROID_PLATFORMS] = new cli_1.Option(exports.ANDROID_PLATFORMS, 'Which platforms you want to use in android emulation', 'string', binaries_1.AndroidSDK.DEFAULT_PLATFORMS);
  79. opts[exports.ANDROID_ACCEPT_LICENSES] =
  80. new cli_1.Option(exports.ANDROID_ACCEPT_LICENSES, 'Automatically accept android licenses', 'boolean', false);
  81. opts[exports.AVDS] = new cli_1.Option(exports.AVDS, 'Android virtual devices to emulate. Use "all" for emulating all possible devices, and "none" for no devices', 'string', 'all');
  82. opts[exports.AVD_USE_SNAPSHOTS] = new cli_1.Option(exports.AVD_USE_SNAPSHOTS, 'Rather than booting a new AVD every time, save/load snapshots of the last time it was used', 'boolean', true);
  83. opts[exports.STARTED_SIGNIFIER] = new cli_1.Option(exports.STARTED_SIGNIFIER, 'A string to be outputted once the selenium server is up and running. Useful if you are writing a script which uses webdriver-manager.', 'string');
  84. opts[exports.SIGNAL_VIA_IPC] = new cli_1.Option(exports.SIGNAL_VIA_IPC, 'If you are using --' + exports.STARTED_SIGNIFIER +
  85. ', this flag will emit the signal string using process.send(), rather than writing it to stdout', 'boolean', false);
  86. opts[exports.DETACH] = new cli_1.Option(exports.DETACH, 'Once the selenium server is up and running, return control to the parent process and continue running the server in the background.', 'boolean', false);
  87. opts[exports.VERBOSE] = new cli_1.Option(exports.VERBOSE, 'Extra console output', 'boolean', false);
  88. opts[exports.QUIET] = new cli_1.Option(exports.QUIET, 'Minimal console output', 'boolean', false);
  89. opts[exports.ALREADY_OFF_ERROR] = new cli_1.Option(exports.ALREADY_OFF_ERROR, 'Normally if you try to shut down a selenium which is not running, you will get a warning. This turns it into an error', 'boolean', false);
  90. exports.Opts = opts;
  91. //# sourceMappingURL=opts.js.map