Act IChapter 7
chapter 7
7. Classes and Modules
Organise code into classes and files, ready for page objects.
29m read29m in total
Chapter film (about 7m) is coming.
5 more checkpoints in this chapter
This chapter is part of Standard, which opens at launch. Its lessons are listed below.
- JavaScript Classes & OOP
- Why This Chapter Is Here: Page Objects Are Just Classes
- Modules: require() vs import/export
- Build: Your First Page Object
- Practice and interview questions: Classes, OOP & Modules
Common questions
Practice
13 exercises attached to this chapter.
- fixthis, lost in a callback🔒 standard
- fixA method handed over without its object🔒 standard
- fixA subclass that skipped its parent🔒 standard
- mcqJavaScript — quiz bank (10 questions)🔒 standard