run() — fastapi Function Reference
Architecture documentation for the run() function in image02.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD b6198639_b153_e343_ce78_4f373fb0c19d["run()"] 1e7eee4d_34c7_8ce6_2207_42f8f885e565["image02.py"] b6198639_b153_e343_ce78_4f373fb0c19d -->|defined in| 1e7eee4d_34c7_8ce6_2207_42f8f885e565 99aadcd9_59a6_a7a7_bc12_da913c5e875a["sync_playwright()"] 99aadcd9_59a6_a7a7_bc12_da913c5e875a -->|calls| b6198639_b153_e343_ce78_4f373fb0c19d style b6198639_b153_e343_ce78_4f373fb0c19d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/playwright/separate_openapi_schemas/image02.py lines 7–23
def run(playwright: Playwright) -> None:
browser = playwright.chromium.launch(headless=False)
# Update the viewport manually
context = browser.new_context(viewport={"width": 960, "height": 1080})
page = context.new_page()
page.goto("http://localhost:8000/docs")
page.get_by_text("GET/items/Read Items").click()
page.get_by_role("button", name="Try it out").click()
page.get_by_role("button", name="Execute").click()
# Manually add the screenshot
page.screenshot(
path="docs/en/docs/img/tutorial/separate-openapi-schemas/image02.png"
)
# ---------------------
context.close()
browser.close()
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does run() do?
run() is a function in the fastapi codebase, defined in scripts/playwright/separate_openapi_schemas/image02.py.
Where is run() defined?
run() is defined in scripts/playwright/separate_openapi_schemas/image02.py at line 7.
What calls run()?
run() is called by 1 function(s): sync_playwright.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free