-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🚀 Feature]: webdriver connect pool maxsize increase #14594
Comments
@Liu-XinYuan, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
The code involved is as follows:
|
Hi @Liu-XinYuan, you can increase the poolsize via from selenium import webdriver
from selenium.webdriver.remote.client_config import ClientConfig
client_config = ClientConfig(
remote_server_addr="http://ip_addr:port",
init_args_for_pool_manager={
"init_args_for_pool_manager": {
"maxsize": 20, # Set pool size
}
}
)
driver = webdriver.Remote(client_config=client_config) Client config was introduced in this PR. |
Feature and motivation
When I am doing automated testing, I need to asynchronously monitor whether the verification code pop-up box appears. At this time, because the default connection pool size is 1, performance queue and log warnings appear.
[Warning] The connection pool is full and connections are being dropped: xxxx. Connection pool size: 1
Usage example
Asynchronously monitor pop-up boxes that appear randomly
The text was updated successfully, but these errors were encountered: