{"id":17913351,"url":"https://github.com/dmlemeshko/ms-edge-driver","last_synced_at":"2025-03-23T22:35:36.542Z","repository":{"id":37074463,"uuid":"212780239","full_name":"dmlemeshko/ms-edge-driver","owner":"dmlemeshko","description":"NPM wrapper to test Chromium-based Edge browser","archived":false,"fork":false,"pushed_at":"2023-03-03T20:57:51.000Z","size":822,"stargazers_count":2,"open_issues_count":14,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T00:15:46.619Z","etag":null,"topics":["edge-browser","ms-edge-driver","msedgedriver","webbdriverjs","webdriver"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ms-chromium-edge-driver","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmlemeshko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-04T09:32:09.000Z","updated_at":"2022-09-23T16:55:18.000Z","dependencies_parsed_at":"2024-06-18T22:35:05.451Z","dependency_job_id":"49b6f102-571b-4565-bace-a03494ed84fe","html_url":"https://github.com/dmlemeshko/ms-edge-driver","commit_stats":{"total_commits":148,"total_committers":4,"mean_commits":37.0,"dds":0.3986486486486487,"last_synced_commit":"71dd37643b9c92923d156e2d6adaf6b14d0f59b9"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlemeshko%2Fms-edge-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlemeshko%2Fms-edge-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlemeshko%2Fms-edge-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmlemeshko%2Fms-edge-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmlemeshko","download_url":"https://codeload.github.com/dmlemeshko/ms-edge-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245180652,"owners_count":20573707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edge-browser","ms-edge-driver","msedgedriver","webbdriverjs","webdriver"],"created_at":"2024-10-28T19:51:05.716Z","updated_at":"2025-03-23T22:35:36.191Z","avatar_url":"https://github.com/dmlemeshko.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSEdgeDriver\n\nAn NPM wrapper for Chromium-based [MS Edge Driver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/).\n\nThe module detects Edge browser version, installed on the local system and downloads the driver of the same version.\n\n## Install\n\n```shell\nnpm install ms-chromium-edge-driver\n```\n\nOr download the source and run\n\n```shell\nnode lib/install.js\n```\n\nThe package fetches MS Edge browser binary for path and version. Then it downloads the driver of the same version.\n\nThe package supports MacOS(darwin) and Windows. Linux based platforms are not supported since there is no MS Edge browser released on it yet.\n\n## Usage\n\n```typescript\nimport { installDriver } from 'ms-chromium-edge-driver';\nimport { Builder } from 'selenium-webdriver';\nimport edge from 'selenium-webdriver/edge';\n\nconst edgePaths = await installDriver();\nconst edgeOptions = new edge.Options();\nedgeOptions.setEdgeChromium(true);\nedgeOptions.setBinaryPath(edgePaths.browserPath);\nconst driver = await new Builder()\n  .forBrowser('MicrosoftEdge')\n  .setEdgeOptions(edgeOptions)\n  .setEdgeService(new edge.ServiceBuilder(edgePaths.driverPath))\n  .build();\n```\n\n## Custom binaries url\n\nTo use a mirror of the MSEdgeDriver binaries use PATH variable `EDGEDRIVER_CDNURL`.\nDefault is `https://msedgedriver.azureedge.net`.\n\n```shell\nEDGEDRIVER_CDNURL=https://\u003cmirror address\u003e npm install ms-chromium-edge-driver\n```\n\n## Custom browser binary path and driver version\n\nTo override the default binary path use the npm config property `npm_config_edge_binary_path`.\n\n```shell\nnpm install ms-chromium-edge-driver --npm_config_edge_binary_path=/path/to/Microsoft Edge\n```\n\nAnother option is to use the PATH variable `EDGE_BINARY_PATH`\n\n```shell\nEDGE_BINARY_PATH=C:\\\\Program Files (x86)\\\\Microsoft\\\\Edge\\\\Application\\\\msedge.exe\n```\n\nOn Windows there is an option to pass custom HKEY by using the PATH variable `EDGE_HKEY`:\n\n```shell\nEDGE_HKEY=SOFTWARE\\\\WOW6432Node\\\\Microsoft\\\\Windows\\\\Current\\\\Version\\\\Uninstall\\\\Microsoft Edge\n```\n\nIn addition, custom driver version can be specified with the npm config property `npm_config_edgedriver_version`\n\n```shell\nnpm install ms-chromium-edge-driver --npm_config_edgedriver_version=80.0.361.103\n```\n\nAnother option is to use the PATH variable `EDGEDRIVER_VERSION`\n\n```shell\nEDGEDRIVER_VERSION=80.0.361.103\n```\n\nIf both browser binary path and version are provided, the package will skip binary fetch step and start with the driver download.\n\n## Custom driver binary\n\nTo get the msedgedriver from the filesystem instead of a web request use the npm config property `npm_config_edgedriver_path`.\n\n```shell\nnpm install ms-chromium-edge-driver --npm_config_edgedriver_path=/path/to/msedgedriver.exe\n```\n\nOr add property into your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file.\n\n```\nnpm_config_edgedriver_path=/path/to/msedgedriver.exe\n```\n\nAnother option is to use the PATH variable `EDGEDRIVER_PATH`\n\n```shell\nEDGEDRIVER_PATH=/path/to/msedgedriver.exe\n```\n\nIf both the binary path and driver path are provided, the package will return it skipping browser fetching and driver download steps.\n\n## Download driver during npm install\n\nDriver is not downloaded during npm install by default.\n\nTo change this behaviour set the npm config property `npm_config_edgedriver_download_on_install`\n\n```shell\nnpm install ms-chromium-edge-driver --npm_config_edgedriver_download_on_install=1\n```\n\nAnother option is to use the PATH variable `EDGEDRIVER_DOWNLOAD_ON_INSTALL`\n\n```shell\nEDGEDRIVER_DOWNLOAD_ON_INSTALL=1\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmlemeshko%2Fms-edge-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmlemeshko%2Fms-edge-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmlemeshko%2Fms-edge-driver/lists"}