我想知道是否可以使用 playwright 的 python 版本在 playwright chrome/firefox 驱动程序中发布请求:https://playwright.dev/python/docs/api/class-playwright
如有任何帮助,我们将不胜感激,提前谢谢您
您可以使用 Playwright APIRequestContext 功能。
response = await api_request_context.post(...)
Page.request.post
如果您已经有页面对象,这可能比创建上下文更方便。