Creating and using a browsing session
Sessions provide a context manager for browser automation:
See more operations on sessions:
Get the relevant information from a page
Retrieve information and available actions on a page
Take action on a page
You can use the default parameters to create your session, or customize them:
File Storage to attach to the session (default: None)
Whether to run the session in headless mode.
Whether to try to automatically solve captchas
Session timeout in minutes. Cannot exceed the global timeout.
List of custom proxies to use for the session. If True, the default proxies will be used.
The browser type to use. Can be chromium, chrome or firefox.
The user agent to use for the session
Overwrite the chrome instance arguments
The width of the viewport
The height of the viewport
The CDP URL of another remote session provider.
Whether FileStorage should be attached to the session.