Skip to content

[BUG] page.content() does not fully output, it was interrupted #1805

@cyboca

Description

@cyboca

Context:

  • Playwright Version: [1.31.1]
  • Operating System: [Windows]
  • Python version: [3.9.7]
  • Browser: [Chromium]

Code Snippet

from playwright.sync_api import sync_playwright

url="http://emweb.securities.eastmoney.com/PC_HSF10/NewFinanceAnalysis/Index?type=web&code=sz001201"

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page()
    page.goto(url,timeout=5000)
    print(page.content())
    browser.close()

Describe the bug

I'm trying to grab some finance data from the url above and I use the page.content() to get the full page but the output seems interrupted.
It displayed all good when I use headless=False in the browser.
s1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions