The page_options parameter worked when pages were created without using context:
https://playwright.dev/python/docs/api/class-browser#browser-new-page
Currently, we are working with context created in PlaywrightBrowserController. When creating a page from context, it doesn't accept any parameters:
https://playwright.dev/python/docs/api/class-browsercontext#browser-context-new-page
These parameters should now be passed when creating the context and therefore be renamed to context_options:
https://playwright.dev/python/docs/api/class-browser#browser-new-context
The
page_optionsparameter worked when pages were created without using context:https://playwright.dev/python/docs/api/class-browser#browser-new-page
Currently, we are working with context created in
PlaywrightBrowserController. When creating a page from context, it doesn't accept any parameters:https://playwright.dev/python/docs/api/class-browsercontext#browser-context-new-page
These parameters should now be passed when creating the context and therefore be renamed to
context_options:https://playwright.dev/python/docs/api/class-browser#browser-new-context