Skip to content

Commit 3f0b396

Browse files
committed
Update the documentation
1 parent d3abd57 commit 3f0b396

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pytest test_demo_site.py --chrome
5959

6060
<p>💡 SeleniumBase is a Python test framework for the <a href="https://www.w3.org/TR/webdriver2/#endpoints" target="_blank">Selenium/WebDriver</a> browser automation library. This framework incorporates test-runners such as <code>pytest</code>, <code>nosetests</code>, and <code>behave</code> to provide organized structure, test discovery, test execution, test state (<i>eg. passed, failed, or skipped</i>), and command-line options for changing default settings (<i>such as choosing the browser to use</i>). With raw Selenium, you would need to set up your own options-parser for configuring tests from the command-line.</p>
6161

62-
<p>💡 With raw Selenium, you have to manually download drivers (<i>eg. chromedriver</i>) before running tests. With SeleniumBase's driver manager, that's done automatically for you if the required driver isn't already on your PATH. There are also console scripts available for more control (eg. <code>sbase install chromedriver latest</code> to download the latest version of chromedriver to a local SeleniumBase directory).</p>
62+
<p>💡 With raw Selenium, you have to manually download drivers (<i>eg. chromedriver</i>) before running tests. With SeleniumBase's driver manager, that's done automatically for you if the required driver isn't already on your PATH. There are also console scripts available for more control (eg. <code>sbase get chromedriver latest</code> to download the latest version of chromedriver to a local SeleniumBase directory).</p>
6363

6464
<p>💡 With raw Selenium, commands that use selectors need to specify the type of selector (eg. <code>"css selector", "button#myButton"</code>). With SeleniumBase, there's auto-detection between CSS Selectors and XPath, which means you don't need to specify the type of selector in your commands (<i>but optionally you could</i>).</p>
6565

help_docs/verify_webdriver.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
## [<img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32">](https://github.com/seleniumbase/SeleniumBase/) Verifying that web drivers are installed
22

3-
On newer versions of SeleniumBase, the driver is automatically downloaded to the ``seleniumbase/drivers`` folder, and does not need to be on the System Path when running tests.
3+
On newer versions of SeleniumBase, the driver is automatically downloaded to the ``seleniumbase/drivers`` folder as needed, and does not need to be on the System Path when running tests.
44

5-
Drivers can be manually downloaded with commands such as:
5+
Drivers can be manually downloaded to the ``seleniumbase/drivers`` folder with commands such as:
66

77
```bash
8-
sbase install chromedriver
9-
sbase install chromedriver latest
10-
sbase install geckodriver
11-
sbase install edgedriver
8+
sbase get chromedriver
9+
sbase get chromedriver latest
10+
sbase get geckodriver
11+
sbase get edgedriver
1212
```
1313

1414
--------
@@ -18,7 +18,7 @@ If you want to check that you have the correct driver installed on your System P
1818
*This assumes you've already downloaded a driver to your **System PATH** with a command such as:*
1919

2020
```bash
21-
sbase install chromedriver --path
21+
sbase get chromedriver --path
2222
```
2323

2424
(The above ``--path`` addition is for Linux/Mac only, which uses ``/usr/local/bin/``. The "Path" is different on Windows, and you'll need to manually copy the driver to your System Path, which is defined in the Control Panel's System Environment Variables.)

help_docs/webdriver_installation.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,23 @@ To run web automation, you'll need webdrivers for each browser you plan on using
55
You can also download drivers manually with these commands:
66

77
```bash
8-
sbase install chromedriver
9-
sbase install geckodriver
10-
sbase install edgedriver
11-
sbase install iedriver
12-
sbase install operadriver
8+
sbase get chromedriver
9+
sbase get geckodriver
10+
sbase get edgedriver
1311
```
1412

1513
* If you have the latest version of Chrome installed, get the latest chromedriver (<i>otherwise it defaults to chromedriver 72.0.3626.69 for compatibility reasons</i>):
1614

1715
```bash
18-
sbase install chromedriver latest
16+
sbase get chromedriver latest
1917
```
2018

2119
* You can also install a specific version of chromedriver for a specific version of Chrome:
2220

2321
```bash
24-
sbase install chromedriver 102.0.5005.61
22+
sbase get chromedriver 102.0.5005.61
2523

26-
sbase install chromedriver 102
24+
sbase get chromedriver 102
2725
```
2826

2927
* On Linux, you can run the following two commands (once you've installed SeleniumBase) to automatically upgrade your Chromedriver to match your version of Chrome: (``wget`` downloads the file, and ``pytest`` runs it.)

mkdocs_build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Jinja2==3.1.2
1515
click==8.1.3
1616
zipp==3.8.1
1717
ghp-import==2.1.0
18-
readme-renderer==35.0
18+
readme-renderer==36.0
1919
pymdown-extensions==9.5
2020
importlib-metadata==4.12.0
2121
bleach==5.0.1

0 commit comments

Comments
 (0)