iedriver.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const config_1 = require("../config");
  4. const binary_1 = require("./binary");
  5. const iedriver_xml_1 = require("./iedriver_xml");
  6. class IEDriver extends binary_1.Binary {
  7. constructor(opt_alternativeCdn) {
  8. super(opt_alternativeCdn || config_1.Config.cdnUrls().ie);
  9. this.configSource = new iedriver_xml_1.IEDriverXml();
  10. this.name = 'IEDriverServer';
  11. this.versionDefault = IEDriver.versionDefault;
  12. this.versionCustom = this.versionDefault;
  13. }
  14. id() {
  15. return IEDriver.id;
  16. }
  17. prefix() {
  18. return 'IEDriverServer';
  19. }
  20. suffix() {
  21. return '.zip';
  22. }
  23. getVersionList() {
  24. if (this.alternativeDownloadUrl != null) {
  25. return Promise.resolve([]);
  26. }
  27. else {
  28. return this.configSource.getVersionList();
  29. }
  30. }
  31. }
  32. IEDriver.id = 'ie';
  33. IEDriver.isDefault32 = false;
  34. IEDriver.isDefault64 = false;
  35. IEDriver.os = [binary_1.OS.Windows_NT];
  36. IEDriver.versionDefault = config_1.Config.binaryVersions().ie;
  37. exports.IEDriver = IEDriver;
  38. //# sourceMappingURL=iedriver.js.map