Looking at your code, the constructor is written as contructor instead of constructor, so the constructor never runs and this.page stays undefined. Fixing the spelling will solve the error.
contructor
constructor
this.page