selenium
selenium copied to clipboard
[🚀 Feature]: deno support
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, 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!
This issue is looking for contributors.
Please comment below or reach out to us through our IRC/Slack/Matrix channels if you are interested.
Any update on this? Any example whether it works or not using Deno
@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.
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.
This issue was closed because it has been stalled for 14 days with no activity.
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.