nebula.py 882 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. @File : nebula.py
  5. @Time : 2024/11/12 14:15:27
  6. @Author : dulip3ng
  7. @Version : 1.0
  8. @Desc : None
  9. '''
  10. from playwright.sync_api import Page
  11. from pages.login_page import LoginPage
  12. from pages.home_page import HomePage
  13. from pages.head_page import HeadPage
  14. from pages.body_page import BodyPage
  15. from pages.list_page import ListPage
  16. from pages.filter_page import FilterPage
  17. from pages.push_page import PushPage
  18. def new_login_page(page: Page):
  19. return LoginPage(page)
  20. def new_home_page(page: Page):
  21. return HomePage(page)
  22. def new_head_page(page: Page):
  23. return HeadPage(page)
  24. def new_body_page(page: Page):
  25. return BodyPage(page)
  26. def new_list_page(page: Page):
  27. return ListPage(page)
  28. def new_filter_page(page: Page):
  29. return FilterPage(page)
  30. def new_push_page(page: Page):
  31. return PushPage(page)