Skip to content

Commit

Permalink
describe how to install specific version of webdriver (SergeyPirogov#265
Browse files Browse the repository at this point in the history
)

- also exclude README.md, CHANGELOG.md and some other files from trigger tests execution on push/PR
  • Loading branch information
aleksandr-kotlyar authored Feb 7, 2022
1 parent 94e96ff commit cf47f16
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
name: "Tests"
on:
push:

paths-ignore:
- CHANGELOG.md
- README.md
- LICESNSE.txt
- release-process.rst
- .gitignore
- .coveragerc
- .github/workflows/deploy.yml
- .github/workflows/codeql-analysis.yml
- .github/workflows/FUNDING.yml
pull_request:
branches:
- master
paths-ignore:
- CHANGELOG.md
- README.md
- LICESNSE.txt
- release-process.rst
- .gitignore
- .coveragerc
- .github/workflows/deploy.yml
- .github/workflows/codeql-analysis.yml
- .github/workflows/FUNDING.yml

jobs:
test:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ import os
os.environ['WDM_SSL_VERIFY'] = '0'
```

### `version`
Specify the version of webdriver you need. And webdriver-manager will download it from sources for your os.
```python
ChromeDriverManager(version="2.26").install()
```

### `cache_valid_range`
Driver cache by default is valid for 1 day. You are able to change this value using constructor parameter:

Expand Down

0 comments on commit cf47f16

Please sign in to comment.