|
1 |
| -### <img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> SeleniumBase webdriver storage |
| 1 | +### <img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> SeleniumBase webdriver storage |
2 | 2 |
|
3 | 3 | * You need a different webdriver for each web browser you want to run automation on: ``chromedriver`` for Chrome, ``edgedriver`` for Edge, ``geckodriver`` for Firefox, ``operadriver`` for Opera, and ``iedriver`` for Internet Explorer.
|
4 | 4 |
|
| 5 | +```bash |
| 6 | +seleniumbase get chromedriver |
| 7 | +seleniumbase get geckodriver |
| 8 | +seleniumbase get edgedriver |
| 9 | +seleniumbase get iedriver |
| 10 | +seleniumbase get operadriver |
5 | 11 | ```
|
6 |
| -seleniumbase install chromedriver |
7 |
| -seleniumbase install geckodriver |
8 |
| -seleniumbase install edgedriver |
9 |
| -seleniumbase install iedriver |
10 |
| -seleniumbase install operadriver |
11 |
| -``` |
12 |
| -After running the commands above, web drivers will get downloaded into this folder. SeleniumBase will then use those drivers during test runs if present. (The drivers don't come with SeleniumBase by default.) |
| 12 | + |
| 13 | +After running the commands above, web drivers will get downloaded into this folder. SeleniumBase will then use those drivers during tests if present. (The drivers don't come with SeleniumBase by default.) |
13 | 14 |
|
14 | 15 | * If you have the latest version of Chrome installed, get the latest chromedriver (<i>otherwise it defaults to chromedriver 2.44 for compatibility reasons</i>):
|
| 16 | + |
15 | 17 | ```bash
|
16 |
| -seleniumbase install chromedriver latest |
| 18 | +sbase get chromedriver latest |
17 | 19 | ```
|
18 | 20 |
|
19 | 21 | If the necessary driver is not found in this location while running tests, SeleniumBase will instead look for the driver on the System PATH. If the necessary driver is not on the System PATH either, SeleniumBase will automatically attempt to download the required driver.
|
| 22 | + |
| 23 | +* You can also download specific versions of drivers. Examples: |
| 24 | + |
| 25 | +```bash |
| 26 | +sbase get chromedriver 101 |
| 27 | +sbase get chromedriver 101.0.4951.41 |
| 28 | +sbase get chromedriver latest-1 |
| 29 | +sbase get edgedriver 101.0.1210.32 |
| 30 | +``` |
0 commit comments