Skip to content

Commit d01d531

Browse files
committed
add read timeout example
1 parent 4599c96 commit d01d531

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ options.set_capability('browser_name', 'safari')
311311
driver = webdriver.Remote('http://127.0.0.1:4723', options=options, strict_ssl=False)
312312
```
313313
314-
Since Appium Python client v5, we recommend using ClientConfig instead.
314+
Since Appium Python client v4.3.0, we recommend using `selenium.webdriver.remote.client_config.ClientConfig`
315+
instead to configure the validation.
315316
316317
```python
317318
from appium import webdriver
@@ -380,6 +381,16 @@ driver = webdriver.Remote(custom_executor, options=options)
380381
381382
The `AppiumConnection` can set `selenium.webdriver.remote.client_config.ClientConfig` as well.
382383
384+
## Relaxing read timeout
385+
386+
Appium Python Client has 120 seconds read timeout on each HTTP request since v4.3.0 as selenium bindings behavior change.
387+
You would get 120 seconds read timeout error in some test results.
388+
389+
1. Set `GLOBAL_DEFAULT_TIMEOUT` environment variable
390+
2. Configure timeout via `selenium.webdriver.remote.client_config.ClientConfig`
391+
- `timeout` argument or
392+
- `init_args_for_pool_manager` argument for `urllib3.PoolManager`
393+
383394
## Documentation
384395
385396
- https://appium.github.io/python-client-sphinx/ is detailed documentation

0 commit comments

Comments
 (0)