Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for get_by_role (0.44 seconds)

  1. scripts/playwright/json_base64_bytes/image01.py

        # 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_role("button", name="POST /data Post Data").click()
        # Manually add the screenshot
        page.screenshot(path="docs/en/docs/img/tutorial/json-base64-bytes/image01.png")
    
        # ---------------------
        context.close()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 1.1K bytes
    - Click Count (0)
Back to Top