Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Enterprise Vue > Lesson 80

Page commands

Looking at our "add item to cart" test, we haven't even finished all the steps yet and it's already quite long.

Another way we can abstract implementation details in Nightwatch is via a page command. This is where we encapsulate logic for some multi-step process into a single command.

For example, say you had a search bar on your page. To enter a search you'd have to tell the browser to find the input, set it's value and click the search button.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom