create.fixture

    0

    2

    hoangNTB

    The code snippet registers a Page as a fixture.

    Shortcut: create.fixture

    from playwright.sync_api import Page
    
    @pytest.fixture
    def register_page(page: Page) -> RegisterPage:
      yield RegisterPage(page)
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.