selenium icon indicating copy to clipboard operation
selenium copied to clipboard

[🚀 Feature]: deno support

Open caperaven opened this issue 2 years ago • 2 comments

Feature and motivation

We are moving away from nodejs to deno. Selenium is important too us and it would be great to have deno support as an alternative to nodejs. I have tried to use the CDN https://www.skypack.dev/view/selenium-webdriver But I still get an error of http being required

/*

  • [Package Error] [Package Error] "http" does not exist. (Imported by "selenium-webdriver:14:7").
  • The package "selenium-webdriver:14:7" depends on this Node.js built-in module.
  • Node.js built-in modules (like "fs", "http", etc.) are Node.js-specific, and do
  • not exist in non-Node environments like Deno or the web browser. Skypack CDN polyfills
  • most of these modules for you automatically, but this one could not be polyfilled.
  • How to fix:
    • Let the package author know that you'd like to run their package in the browser.
    • Use https://skypack.dev/ to find a web-friendly alternative to find another package. */

throw new Error("[Package Error] "http" does not exist. (Imported by "selenium-webdriver:14:7")."); export default null;

I have posted a request on deno side for compat mode to include http but in reality if would far better to just have selenium work directly with deno instead of using compat mode.

Usage example

Testing UI in a deno environment void of nodejs

caperaven avatar Jun 09 '22 13:06 caperaven

@caperaven, 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] avatar Jun 09 '22 13:06 github-actions[bot]

This issue is looking for contributors.

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

github-actions[bot] avatar Jun 10 '22 07:06 github-actions[bot]

Any update on this? Any example whether it works or not using Deno

rahulmr avatar Jan 08 '23 11:01 rahulmr

@rahulmr this is open for contributions, we do not have bandwidth to work on this at the moment and there is not a clear interest from the community to prioritize this.

diemol avatar Mar 13 '23 10:03 diemol

This issue is stale because it has been open 280 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Dec 18 '23 10:12 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Jan 01 '24 20:01 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 01 '24 00:02 github-actions[bot]