问题
有大佬知道,playwright.chromium.launch_persistent_context() 这个方式 支持移动设备模式吗,我在官方文档找半天没找到
报错信息
似乎只能用
browser = p.chromium.launch()
context = browser.new_context(
**playwright.devices[‘iPhone X’]
)
page = context.new_page()
如果强行使用
playwright.chromium.launch_persistent_context(**playwright.devices[‘iPhone X’])
这种方式,会报错
环境
Windows 10 / python3.10 / playwright==1.48.0