SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
29.86k stars 8.03k forks source link

[🚀 Feature]: Expose Selenium Version in Node.js npm Package #14222

Open bukowa opened 2 weeks ago

bukowa commented 2 weeks ago

Feature and motivation

Summary:

Add a feature to the Selenium Node.js npm package that exposes the Selenium version in the source code.

Proposal:

Introduce a constant or method to retrieve the Selenium version.

Benefits:

Simplifies peer dependency checks. Eases debugging and compatibility validation.

Usage example

const seleniumVersion = require('selenium-webdriver').VERSION;

Example from npmjs.com:

// .. then later in your program ..

if (foo) { foo.doFooThings(); }

github-actions[bot] commented 2 weeks ago

@bukowa, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] commented 2 weeks ago

This issue is looking for contributors.

Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested.

bukowa commented 2 weeks ago

This already exists in python: https://github.com/SeleniumHQ/selenium/blob/5e8d6a1f93c51a719c13d7dc263097bec707b11f/py/selenium/__init__.py#L19