Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow users to pass additional arguments to the WebDriver #4121

Merged
merged 1 commit into from May 5, 2023

Conversation

meta-boy
Copy link
Contributor

@meta-boy meta-boy commented May 4, 2023

This commit adds support for passing additional arguments to the SeleniumURLLoader when creating Chrome or Firefox web drivers. Previously, only a few arguments such as headless could be passed in. With this change, users can pass any additional arguments they need as a list of strings using the arguments parameter.

The arguments parameter allows users to configure the driver with any options that are available for that particular browser. For example, users can now pass custom user_agent strings or proxy settings using this parameter.

This change also includes updated documentation and type hints to reflect the new arguments parameter and its usage.

fixes #4120

This commit adds support for passing additional arguments to the `WebDriver` when creating Chrome or Firefox web drivers. Previously, only a few arguments such as `headless` mode and `executable_path` could be passed in. With this change, users can pass any additional arguments they need as a list of strings using the `arguments` parameter.

The `arguments` parameter allows users to configure the driver with any options that are available for that particular browser. For example, users can now pass custom `user_agent` strings or `proxy` settings using this parameter.

This change also includes updated documentation and type hints to reflect the new `arguments` parameter and its usage.
Copy link
Contributor

@hwchase17 hwchase17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@hwchase17 hwchase17 added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label May 5, 2023
@dev2049 dev2049 merged commit 19e28d8 into langchain-ai:master May 5, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Allow users to pass additional arguments to the WebDriver
4 participants