![Page 1: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/1.jpg)
Join The Darksidepresented by seth mclaughlin
Selenium testing with Nightwatch.js
![Page 2: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/2.jpg)
![Page 3: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/3.jpg)
1. Project Overview
2. Features & Limitations
3. Hands On
Tonight’s talk
![Page 5: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/5.jpg)
created by
Andrei Rusu@beatfactor
learn more: www.linkedin.com/in/beatfactor
![Page 6: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/6.jpg)
Selenium WebDriver Web BrowserTest Runner
HTTP
JAVA JAR
Test Script
![Page 7: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/7.jpg)
Selenium WebDriver Web BrowserTest Runner
HTTP
JAVA JAR
Test Script
![Page 8: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/8.jpg)
Selenium WebDriver Web BrowserTest Runner
HTTP
JAVA JARNode.js application
Test Script
Node.js module
![Page 9: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/9.jpg)
Features★ Good documentation
★ Use CSS or XPATH selectors
★ Test runner can execute sequentially or in parallel
★ Test filtering by file name pattern, folders and tags
★ SauceLabs + BrowserStack support
★ Built in JUnit XML reporting
★ Extension model for custom commands
![Page 10: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/10.jpg)
(current) Limitations➔ No built-in Page Object Model support
➔ Somewhat buggy in places
➔ Only one maintainer (beatfactor)
![Page 11: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/11.jpg)
~6,000 downloads per month
~2,000 stars on github
~100 forks on github
learn more: www.npmjs.org/package/nightwatch
![Page 12: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/12.jpg)
20 contributors
1 primary contributors (Andrei)
6 pending pull requests (oldest = 4.5.14)
30 open issues
158 closed issues
learn more: github.com/beatfactor/nightwatch
![Page 13: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/13.jpg)
![Page 14: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/14.jpg)
![Page 15: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/15.jpg)
![Page 16: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/16.jpg)
![Page 17: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/17.jpg)
Get startedprerequisite: node.js
1. Use npm to install nightwatch
2. Download selenium-server-standalone.jar
3. Create Nightwatch config file
4. Create some tests
![Page 18: Join the darkside: Selenium testing with Nightwatch.js](https://reader034.vdocuments.us/reader034/viewer/2022051012/53fe3abe8d7f72c4108b461f/html5/thumbnails/18.jpg)
Resourcesdocumentationhttp://nightwatchjs.org/guide & http://nightwatchjs.org/api
sample codehttps://github.com/sethmcl/join-the-dark-side
nightwatch generator (quick start)https://github.com/sethmcl/generator-selenium-nightwatch
nightwatch page object modelhttps://github.com/sethmcl/nightwatch-pages