{"name":"selenium-webdriver","version":"4.27.0","keywords":["automation","selenium","testing","webdriver","webdriverjs"],"license":"Apache-2.0","_id":"selenium-webdriver@4.27.0","homepage":"https://github.com/SeleniumHQ/selenium/tree/trunk/javascript/node/selenium-webdriver#readme","bugs":{"url":"https://github.com/SeleniumHQ/selenium/issues"},"dist":{"shasum":"f0f26ce453805e7dc77151040442c67e441dbe7a","tarball":"http://registry-npm.ywwl.com/selenium-webdriver/download/selenium-webdriver-4.27.0.tgz","fileCount":96,"integrity":"sha512-LkTJrNz5socxpPnWPODQ2bQ65eYx9JK+DQMYNihpTjMCqHwgWGYQnQTCAAche2W3ZP87alA+1zYPvgS8tHNzMQ==","signatures":[{"sig":"MEQCIG5I6EDzjgi552z2fzJqqRkLEpQ2fGKra2bbFfXQv7/mAiBu97iRlqUfbAAkklC8sErL+R9Z9zcgXKF7O6mj5flfPg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18355504,"size":8773246,"noattachment":false,"key":"/selenium-webdriver/-/selenium-webdriver-4.27.0.tgz"},"main":"./index","mocha":{"timeout":600000,"recursive":true},"engines":{"node":">= 14.21.0"},"funding":[{"url":"https://github.com/sponsors/SeleniumHQ","type":"github"},{"url":"https://opencollective.com/selenium","type":"opencollective"}],"gitHead":"d6e718d134987d62cd8ffff476821fb3ca1797c2","scripts":{"lint":"eslint .","test":"bazel test //javascript/node/selenium-webdriver/...","lint:fix":"eslint . --fix","generate-docs":"jsdoc --configure jsdoc_conf.json --verbose"},"_npmUser":{"name":"diemol","email":"diemol@gmail.com"},"repository":{"url":"git+https://github.com/SeleniumHQ/selenium.git","type":"git"},"_npmVersion":"10.1.0","description":"The official WebDriver JavaScript bindings from the Selenium project","directories":{},"_nodeVersion":"20.9.0","dependencies":{"ws":"^8.18.0","tmp":"^0.2.3","jszip":"^3.10.1","@bazel/runfiles":"^6.3.1"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^4.0.4","mocha":"^10.8.2","sinon":"^19.0.2","eslint":"^9.14.0","multer":"1.4.5-lts.1","express":"^4.21.1","globals":"^15.12.0","has-flag":"^5.0.1","prettier":"^3.3.3","@eslint/js":"^9.14.0","serve-index":"^1.9.1","supports-color":"^9.4.0","eslint-plugin-n":"^17.13.1","clean-jsdoc-theme":"^4.3.0","eslint-plugin-mocha":"^10.5.0","mocha-junit-reporter":"^2.2.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","eslint-plugin-no-only-tests":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/selenium-webdriver_4.27.0_1732544859443_0.29712612785526904","host":"s3://npm-registry-packages"},"readme":"# selenium-webdriver\n\nSelenium is a browser automation library. Most often used for testing\nweb-applications, Selenium may be used for any task that requires automating\ninteraction with the browser.\n\n## Installation\n\nSelenium may be installed via npm with\n\n    npm install selenium-webdriver\n\nYou will need to download additional components to work with each of the major\nbrowsers. The drivers for Chrome, Firefox, and Microsoft's IE and Edge web\nbrowsers are all standalone executables that should be placed on your system\n[PATH]. Apple's safaridriver (v10 and above) can be found at the\nfollowing path – /usr/bin/safaridriver. To enable automation on safari,\nyou need to run command `safaridriver --enable`.\n\n| Browser           | Component                        |\n| :---------------- | :------------------------------- |\n| Chrome            | [chromedriver(.exe)][chrome]     |\n| Internet Explorer | [IEDriverServer.exe][release]    |\n| Edge              | [MicrosoftWebDriver.msi][edge]   |\n| Firefox           | [geckodriver(.exe)][geckodriver] |\n| Opera             | [operadriver(.exe)][operadriver] |\n| Safari            | [safaridriver]                   |\n\n## Usage\n\nThe sample below and others are included in the `example` directory. You may\nalso find the tests for selenium-webdriver informative.\n\n```javascript\nconst { Builder, Browser, By, Key, until } = require('selenium-webdriver')\n\n;(async function example() {\n  let driver = await new Builder().forBrowser(Browser.FIREFOX).build()\n  try {\n    await driver.get('https://www.google.com/ncr')\n    await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN)\n    await driver.wait(until.titleIs('webdriver - Google Search'), 1000)\n  } finally {\n    await driver.quit()\n  }\n})()\n```\n\n### Using the Builder API\n\nThe `Builder` class is your one-stop shop for configuring new WebDriver\ninstances. Rather than clutter your code with branches for the various browsers,\nthe builder lets you set all options in one flow. When you call\n`Builder#build()`, all options irrelevant to the selected browser are dropped:\n\n```javascript\nconst webdriver = require('selenium-webdriver')\nconst chrome = require('selenium-webdriver/chrome')\nconst firefox = require('selenium-webdriver/firefox')\n\nlet driver = new webdriver.Builder()\n  .forBrowser(webdriver.Browser.FIREFOX)\n  .setChromeOptions(/* ... */)\n  .setFirefoxOptions(/* ... */)\n  .build()\n```\n\nWhy would you want to configure options irrelevant to the target browser? The\n`Builder`'s API defines your _default_ configuration. You can change the target\nbrowser at runtime through the `SELENIUM_BROWSER` environment variable. For\nexample, the `example/google_search.js` script is configured to run against\nFirefox. You can run the example against other browsers just by changing the\nruntime environment\n\n    # cd node_modules/selenium-webdriver\n    node example/google_search\n    SELENIUM_BROWSER=chrome node example/google_search\n    SELENIUM_BROWSER=safari node example/google_search\n\n### The Standalone Selenium Server\n\nThe standalone Selenium Server acts as a proxy between your script and the\nbrowser-specific drivers. The server may be used when running locally, but it's\nnot recommend as it introduces an extra hop for each request and will slow\nthings down. The server is required, however, to use a browser on a remote host\n(most browser drivers, like the IEDriverServer, do not accept remote\nconnections).\n\nTo use the Selenium Server, you will need to install the\n[JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) and\ndownload the latest server from [Selenium][release]. Once downloaded, run the\nserver with\n\n    java -jar selenium-server-4.27.0.jar standalone\n\nYou may configure your tests to run against a remote server through the Builder\nAPI:\n\n```javascript\nlet driver = new webdriver.Builder()\n  .forBrowser(webdriver.Browser.FIREFOX)\n  .usingServer('http://localhost:4444/wd/hub')\n  .build()\n```\n\nOr change the Builder's configuration at runtime with the `SELENIUM_REMOTE_URL`\nenvironment variable:\n\n    SELENIUM_REMOTE_URL=\"http://localhost:4444/wd/hub\" node script.js\n\nYou can experiment with these options using the `example/google_search.js`\nscript provided with `selenium-webdriver`.\n\n## Documentation\n\nAPI documentation is available online from the [Selenium project][api].\nAdditional resources include\n\n- the #selenium channel on freenode IRC\n- the [selenium-users@googlegroups.com][users] list\n- [SeleniumHQ](https://selenium.dev/documentation/) documentation\n\n## Contributing\n\nContributions are accepted either through [GitHub][gh] pull requests or patches\nvia the [Selenium issue tracker][issues].\n\n## Node Support Policy\n\nEach version of selenium-webdriver will support the latest _semver-minor_\nversion of the [LTS] and stable Node releases. All _semver-major_ &\n_semver-minor_ versions between the LTS and stable release will have \"best\neffort\" support. Following a Selenium release, any _semver-minor_ Node releases\nwill also have \"best effort\" support. Releases older than the latest LTS,\n_semver-major_ releases, and all unstable release branches (e.g. \"v.Next\")\nare considered strictly unsupported.\n\nFor example, suppose the current LTS and stable releases are v22.13.0 and\nv23.6.0,\nrespectively. Then a Selenium release would have the following support levels:\n\n|  Version   |    Support    |\n| :--------: | :-----------: |\n| <= 16.20.2 | _unsupported_ |\n|  16.20.2   |   supported   |\n|   18.8.0   |   supported   |\n| >= 22.13.0 |  best effort  |\n|   v.Next   | _unsupported_ |\n\n### Support Level Definitions\n\n- _supported:_ A selenium-webdriver release will be API compatible with the\n  platform API, without the use of runtime flags.\n\n- _best effort:_ Bugs will be investigated as time permits. API compatibility is\n  only guaranteed where required by a _supported_ release. This effectively\n  means the adoption of new JS features, such as ES2015 modules, will depend\n  on what is supported in Node's LTS.\n\n- _unsupported:_ Bug submissions will be closed as will-not-fix and API\n  compatibility is not guaranteed.\n\n### Projected Support Schedule\n\nIf Node releases a new [LTS] each October and a new major version every 6\nmonths, the support window for selenium-webdriver will be roughly:\n\n| Release |     Status      | END-OF-LIFE |\n| :-----: | :-------------: | :---------: |\n|  v18.x  | Maintenance LTS | 2025-04-30  |\n|  v19.x  |   End-of-Life   | 2023-06-01  |\n|  v20.x  | Maintenance LTS | 2026-04-30  |\n|  v21.x  |   End-of-Life   | 2024-06-01  |\n|  V22.x  |   Active LTS    | 2027-04-30  |\n|  V23.x  |     Current     | 2025-06-01  |\n\n## Issues\n\nPlease report any issues using the [Selenium issue tracker][issues]. When using\nthe issue tracker\n\n- **Do** include a detailed description of the problem.\n- **Do** include a link to a [gist](http://gist.github.com/) with any\n  interesting stack traces/logs (you may also attach these directly to the bug\n  report).\n- **Do** include a [reduced test case][reduction]. Reporting \"unable to find\n  element on the page\" is _not_ a valid report - there's nothing for us to\n  look into. Expect your bug report to be closed if you do not provide enough\n  information for us to investigate.\n- **Do not** use the issue tracker to submit basic help requests. All help\n  inquiries should be directed to the [user forum][users] or #selenium IRC\n  channel.\n- **Do not** post empty \"I see this too\" or \"Any updates?\" comments. These\n  provide no additional information and clutter the log.\n- **Do not** report regressions on closed bugs as they are not actively\n  monitored for updates (especially bugs that are >6 months old). Please open a\n  new issue and reference the original bug in your report.\n\n## License\n\nLicensed to the Software Freedom Conservancy (SFC) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The SFC licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\n[LTS]: https://github.com/nodejs/LTS\n[PATH]: http://en.wikipedia.org/wiki/PATH_%28variable%29\n[api]: https://www.selenium.dev/selenium/docs/api/javascript/\n[chrome]: https://googlechromelabs.github.io/chrome-for-testing/#stable\n[gh]: https://github.com/SeleniumHQ/selenium/\n[issues]: https://github.com/SeleniumHQ/selenium/issues\n[edge]: http://go.microsoft.com/fwlink/?LinkId=619687\n[geckodriver]: https://github.com/mozilla/geckodriver/releases/\n[reduction]: http://www.webkit.org/quality/reduction.html\n[release]: https://www.selenium.dev/downloads/\n[users]: https://groups.google.com/forum/#!forum/selenium-users\n[safaridriver]: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_0.html#//apple_ref/doc/uid/TP40014305-CH11-DontLinkElementID_28\n[operadriver]: https://github.com/operasoftware/operachromiumdriver/releases\n","publish_time":1732544859771,"maintainers":[{"name":"jmleyba","email":"jmleyba@gmail.com"},{"name":"corevo","email":"tomer@corevo.io"},{"name":"tourdedave","email":"dhaeffner@gmail.com"},{"name":"sriharsha","email":"sri_harsha509@hotmail.com"},{"name":"automatedtester","email":"david.burns@theautomatedtester.co.uk"},{"name":"diemol","email":"diemol@gmail.com"},{"name":"titusfortner","email":"titusfortner@gmail.com"},{"name":"pujagani","email":"puja.jagani93@gmail.com"}],"_cnpm_publish_time":1732544859771,"dist-tags":{"latest":"4.52.0"}}