
What will be covered in this course.
What you should know going into this course. What do you need to know? What do you need to install?
Learn how Nightwatch, a test automation tool, runs tests against web browsers via webdrivers, interprets pass or fail results, and sets up drivers for Chrome and Firefox.
Create a test directory for Nightwatch and use dot forward slash test to reference it, then run npx nightwatch to see no tests defined yet.
http://tutorials.actionqa.com/yt/nw/simple.html
Learn to use Nightwatch.js to input values via both CSS selectors and XPath selectors, switching between useCss and useXpath for reliable element targeting.
Set up a new Nightwatch.js test for a select dropdown by cleaning pauses, uncommenting code, creating dropdown.js, and clicking items in the dropdown on a Marvel page.
Master dropdown automation in nightwatch.js by using browser.setValue with a css selector to type thor, hulk, or black widow and observe option filtering with short waits.
Explore how to interact with dropdowns in nightwatch.js by using the click method with css selectors to open the select and click specific options via nth-child, including looping through items.
Set up a new Nightwatch project by initializing npm, installing Nightwatch and Chrome Driver, creating a test folder with conf.js, and verifying the setup for element visibility.
Learn how to write a Nightwatch.js test that asserts contains text on a page, uses a selector, and checks case sensitive text.
Learn how to validate text in Nightwatch.js by using expect text to contain or equal, handle text changes, and verify element presence with practical debugging techniques.
Explore how the expect API handles the enabled state in Nightwatch.js, compare it with assert, and demonstrate practical examples for testing an element's enabled status.
Show how a text field enables the submit button and navigates to another page, explain the HTML disabled attribute, and address Nightwatch assertion limits with an expect-based approach.
Compare waitForElementVisible and waitForElementPresent in Nightwatch, and explore how assert, expect, and built-in waits simplify element checks with practical examples.
Demonstrate using Nightwatch.js to test a page by refreshing, waiting for element present and visible, and confirming that spans one and two appear, then disappear.
Explore asserts and expects for web testing, including visible text, presence, and enabled state, compare verify versus assert, and the five-second built-in wait versus customizable wait for elements.
Learn how to organize Nightwatch tests with groups by placing tests into subfolders like foo and bar, then run or skip groups using --group or -g, enabling selective test execution.
Explore nightwatch.js for web automation testing, covering simple tests, form filling, button clicks, and robust assertions with expects, plus running tests solo or by groups and tags.
Explore advanced concepts to clean up and extend your Nightwatch.js tests, creating a more reusable test framework and inviting you to check out the upcoming course.
Do you need to learn how to write test automation for websites? This course gets you started using the basics of web test automation.
By the end of this course, you will be able to write basic web test automation that you can use at any job. You will learn how to install Nightwatch.js from scratch and how to do so in a Node.js friendly way.
Learn how to automate:
navigating to web pages
clicking on elements
filling out forms
validating elements on the page
selecting items from dropdown menus
Under the hood, Nightwatch.js uses Selenium. Taking this course will introduce you to the world of Selenium based testing for web pages. A valuable skill in the marketplace.
You only need to know the basics of Javascript to take this course. You can follow along as all the examples are written on the screen for you to follow along with.
All the tools used in this course are free, so you don't need to buy any fancy software.
The instructor has used Nightwatch.js at his company to build a large number of tests across multiple teams that are used to verify releases in their Continuous Delivery system. Chris has taught multiple teams and other software testers how to use Nightwatch.js to accomplish these goals. You are in good hands in this course!