Skip to content

← All questions

How deep should page objects nest? We are four levels in and it hurts

Asked 7,340 views3 answers

Our hierarchy is BasePage to AuthenticatedPage to DashboardPage to ReportsPage, and there is talk of a fifth level for the two report variants.

Nobody can say where a locator lives without opening four files. Is there a recommended depth, and does the folder layout under pages/ matter to the runner at all?

asked by Renata Kohl608 ·

3 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related