Currently ConnectOptions is not supported, so that it can't connect to a remote browser instance via browserWSEndpoint. This feature would be useful for scenarios where a browser instance is running remotely, such as in a cloud environment or a separate machine.
Expected Behavior:
- Provide an option to connect to a remote browser via
browserWSEndpoint.
- Ensure compatibility with existing configurations.
- Handle errors gracefully when the remote browser is unreachable.
Use Case:
- Running a headless browser on a remote server for scraping tasks.
Potential Implementation:
- Allow users to specify
browserWSEndpoint in configuration.
- Modify the connection logic to use
puppeteer.connect() when browserWSEndpoint is provided.
Additional Context:
Currently ConnectOptions is not supported, so that it can't connect to a remote browser instance via
browserWSEndpoint. This feature would be useful for scenarios where a browser instance is running remotely, such as in a cloud environment or a separate machine.Expected Behavior:
browserWSEndpoint.Use Case:
Potential Implementation:
browserWSEndpointin configuration.puppeteer.connect()whenbrowserWSEndpointis provided.Additional Context:
browserWSEndpointdocumentation