Skip to main content
2 of 2
added 9 characters in body
IAmMilinPatel
  • 7.8k
  • 7
  • 43
  • 68

But you don't need to pass page in every function of a class. Instead you can pass the page object from test class while creating the object of the class.

const searchPage = new SearchPage(page)

This will work.