SeleniumHQ / selenium

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

How Selenium is better as compared to NightWatch framework? #10989

Closed sayom88 closed 2 years ago

sayom88 commented 2 years ago

Feature and motivation

How is Selenium better than Nightwatch?

Usage example

Hello Team,

I would like to know from a feature point of view how Selenium is better than NightWatch.

github-actions[bot] commented 2 years ago

@sayom88, 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 years ago

💬 Please ask questions at:

diemol commented 2 years ago

Comparing Selenium and Nightwatch is not correct because both tools have different scopes.

Selenium is a tool that focuses on browser automation, and has no opinions in it. By this I mean that it has no automatic waits, or extra features to enable easy debugging. See it as a low level library.

Nightwatch is built on top of Selenium, and has lots of good features that make it a full testing framework.

So, if you are looking for a framework in JavaScript with many included features to write tests, you should use Nightwatch directly and avoid getting involved with the internals of Selenium. An alternative is WebdriverIO, another JS testing framework that implements the WebDriver specification.

If you have more questions, please reach out to us through the links shown in the comment above.

sayom88 commented 2 years ago

Hello @diemol thanks...our client has actually asked to showcase the pros and cons of Selenium vs Nightwatch. Hence the ask

github-actions[bot] commented 2 years ago

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.