def page(self, driver, must_be_logged_in): page = DashboardPage(driver) page.goto_with_reload() return page